diff options
| author | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-07-03 19:38:14 +0200 |
|---|---|---|
| committer | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-07-18 10:53:08 +0200 |
| commit | 53d2ebb0adbe677a811ae130523ebceb285a8029 (patch) | |
| tree | aa5bf290ab3240ee1028359cef335f22dc1a2cdb /src/test/ui/closure-immutable-outer-variable.stderr | |
| parent | 1c84d8187395b641616649a0f16f15a78ea8bbce (diff) | |
Implement existential types
Diffstat (limited to 'src/test/ui/closure-immutable-outer-variable.stderr')
| -rw-r--r-- | src/test/ui/closure-immutable-outer-variable.stderr | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/closure-immutable-outer-variable.stderr b/src/test/ui/closure-immutable-outer-variable.stderr new file mode 100644 index 00000000000..0ee11d8cf15 --- /dev/null +++ b/src/test/ui/closure-immutable-outer-variable.stderr @@ -0,0 +1,11 @@ +error[E0594]: cannot assign to captured outer variable in an `FnMut` closure + --> $DIR/closure-immutable-outer-variable.rs:21:26 + | +LL | let y = true; + | - help: consider making `y` mutable: `mut y` +LL | foo(Box::new(move || y = false) as Box<_>); //~ ERROR cannot assign to captured outer variable + | ^^^^^^^^^ + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0594`. |
