Add a check for binding an alias. Good thing, as we had two instances in our library.

This commit is contained in:
Graydon Hoare 2010-11-08 15:45:30 -08:00
parent c5720b2fc4
commit 3e9be14757
4 changed files with 35 additions and 2 deletions

View file

@ -0,0 +1,7 @@
// error-pattern: binding alias slot
fn f(&int x) {}
fn main() {
bind f(10);
}