Add a check for binding an alias. Good thing, as we had two instances in our library.
This commit is contained in:
parent
c5720b2fc4
commit
3e9be14757
4 changed files with 35 additions and 2 deletions
7
src/test/compile-fail/bind-alias.rs
Normal file
7
src/test/compile-fail/bind-alias.rs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
// error-pattern: binding alias slot
|
||||
|
||||
fn f(&int x) {}
|
||||
|
||||
fn main() {
|
||||
bind f(10);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue