fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1error[E0382]: use of moved value: `x` 2 --> $DIR/issue-34721.rs:27:9 3 | 4LL | pub fn baz<T: Foo>(x: T) -> T { 5 | -- - move occurs because `x` has type `T`, which does not implement the `Copy` trait 6 | | 7 | help: consider further restricting this bound: `T: Copy +` 8LL | if 0 == 1 { 9LL | bar::bar(x.zero()) 10 | - value moved here 11LL | } else { 12LL | x.zero() 13 | - value moved here 14LL | }; 15LL | x.zero() 16 | ^ value used here after move 17 18error: aborting due to previous error 19 20For more information about this error, try `rustc --explain E0382`.