]> git.lizzy.rs Git - rust.git/blob - tests/ui/on-unimplemented/expected-comma-found-token.rs
Rollup merge of #107306 - compiler-errors:correct-sugg-for-closure-arg-needs-borrow...
[rust.git] / tests / ui / on-unimplemented / expected-comma-found-token.rs
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
13 fn main() {  }