We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09a7bc5 commit cbeff8bCopy full SHA for cbeff8b
src/test/compile-fail/borrowck-closures-mut-of-imm.rs
@@ -24,6 +24,7 @@ fn a(x: &int) {
24
//~^ ERROR cannot borrow
25
let c2 = || set(&mut *x);
26
27
+ //~| ERROR closure requires unique access
28
}
29
30
fn main() {
src/test/compile-fail/issue-17551.rs
@@ -13,6 +13,6 @@
13
struct B<T>;
14
15
16
- let foo = B; //~ ERROR unable to infer enough type information
17
- let closure = |:| foo;
+ let foo = B;
+ let closure = |:| foo; //~ ERROR unable to infer enough type information
18
0 commit comments