]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-42796.stderr
New upstream version 1.60.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-42796.stderr
1 error[E0382]: borrow of moved value: `s`
2 --> $DIR/issue-42796.rs:18:20
3 |
4 LL | let s = "Hello!".to_owned();
5 | - move occurs because `s` has type `String`, which does not implement the `Copy` trait
6 LL | let mut s_copy = s;
7 | - value moved here
8 ...
9 LL | println!("{}", s);
10 | ^ value borrowed here after move
11 |
12 = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0382`.