]> git.lizzy.rs Git - rust.git/blob - src/test/ui/union/union-generic.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / union / union-generic.stderr
1 error[E0277]: the trait bound `std::rc::Rc<u32>: std::marker::Copy` is not satisfied
2   --> $DIR/union-generic.rs:18:13
3    |
4 LL |     let u = U { a: Rc::new(0u32) };
5    |             ^ the trait `std::marker::Copy` is not implemented for `std::rc::Rc<u32>`
6    |
7 note: required by `U`
8   --> $DIR/union-generic.rs:13:1
9    |
10 LL | union U<T: Copy> {
11    | ^^^^^^^^^^^^^^^^
12
13 error[E0277]: the trait bound `std::rc::Rc<u32>: std::marker::Copy` is not satisfied
14   --> $DIR/union-generic.rs:20:13
15    |
16 LL |     let u = U::<Rc<u32>> { a: Default::default() };
17    |             ^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::rc::Rc<u32>`
18    |
19 note: required by `U`
20   --> $DIR/union-generic.rs:13:1
21    |
22 LL | union U<T: Copy> {
23    | ^^^^^^^^^^^^^^^^
24
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0277`.