1 // Tests that two closures cannot simultaneously have mutable
2 // access to the variable, whether that mutable access be used
3 // for direct assignment or for taking mutable ref. Issue #6801.
4 
5 #![feature(rustc_attrs)]
6 
7 #[rustc_on_unimplemented(
8     message="the message"
9     label="the label" //~ ERROR expected `,`, found `label`
10 )]
11 trait T {}
12 
main()13 fn main() {  }
14