]> git.lizzy.rs Git - rust.git/blob - src/test/ui/union/union-generic.stderr
Merge commit 'b71f3405606d49b9735606b479c3415a0ca9810f' into clippyup
[rust.git] / src / test / ui / union / union-generic.stderr
1 error[E0277]: the trait bound `Rc<u32>: Copy` is not satisfied
2   --> $DIR/union-generic.rs:8:13
3    |
4 LL | union U<T: Copy> {
5    | ---------------- required by `U`
6 ...
7 LL |     let u = U { a: Rc::new(0u32) };
8    |             ^ the trait `Copy` is not implemented for `Rc<u32>`
9
10 error[E0277]: the trait bound `Rc<u32>: Copy` is not satisfied
11   --> $DIR/union-generic.rs:10:13
12    |
13 LL | union U<T: Copy> {
14    | ---------------- required by `U`
15 ...
16 LL |     let u = U::<Rc<u32>> { a: Default::default() };
17    |             ^^^^^^^^^^^^ the trait `Copy` is not implemented for `Rc<u32>`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0277`.