]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-12127.stderr
Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyup
[rust.git] / src / test / ui / issues / issue-12127.stderr
1 error[E0382]: use of moved value: `f`
2   --> $DIR/issue-12127.rs:11:9
3    |
4 LL |         f();
5    |         --- `f` moved due to this call
6 LL |         f();
7    |         ^ value used here after move
8    |
9 note: this value implements `FnOnce`, which causes it to be moved when called
10   --> $DIR/issue-12127.rs:10:9
11    |
12 LL |         f();
13    |         ^
14    = note: move occurs because `f` has type `[closure@$DIR/issue-12127.rs:8:24: 8:41]`, which does not implement the `Copy` trait
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0382`.