fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error[E0382]: use of moved value: `x` 2 --> $DIR/issue-34721.rs:25: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 | consider adding a `Copy` constraint to this type argument 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`.