diff options
| author | Graydon Hoare <[email protected]> | 2010-11-08 15:45:30 -0800 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-11-08 15:45:30 -0800 |
| commit | 3e9be14757bfcaa65e388a9acd7e2ca97cccfbd0 (patch) | |
| tree | 999975b3f2c277e05cc687618323fc77876016d6 /src/test/compile-fail | |
| parent | Fix linux burn caused by last commit on friday. (diff) | |
| download | rust-3e9be14757bfcaa65e388a9acd7e2ca97cccfbd0.tar.xz rust-3e9be14757bfcaa65e388a9acd7e2ca97cccfbd0.zip | |
Add a check for binding an alias. Good thing, as we had two instances in our library.
Diffstat (limited to 'src/test/compile-fail')
| -rw-r--r-- | src/test/compile-fail/bind-alias.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/compile-fail/bind-alias.rs b/src/test/compile-fail/bind-alias.rs new file mode 100644 index 00000000..b2f53252 --- /dev/null +++ b/src/test/compile-fail/bind-alias.rs @@ -0,0 +1,7 @@ +// error-pattern: binding alias slot + +fn f(&int x) {} + +fn main() { + bind f(10); +} |