rust/tests/ui/union/union-generic.mirunsafeck.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
864 B
Plaintext
Raw Normal View History

error[E0277]: the trait bound `Rc<u32>: Copy` is not satisfied
--> $DIR/union-generic.rs:11:13
2018-08-08 12:28:26 +00:00
|
LL | let u = U { a: Rc::new(0u32) };
| ^ the trait `Copy` is not implemented for `Rc<u32>`
|
note: required by a bound in `U`
--> $DIR/union-generic.rs:6:12
|
LL | union U<T: Copy> {
| ^^^^ required by this bound in `U`
2018-08-08 12:28:26 +00:00
error[E0277]: the trait bound `Rc<u32>: Copy` is not satisfied
2022-08-17 04:57:17 +00:00
--> $DIR/union-generic.rs:13:17
2018-08-08 12:28:26 +00:00
|
LL | let u = U::<Rc<u32>> { a: Default::default() };
2022-08-17 04:57:17 +00:00
| ^^^^^^^ the trait `Copy` is not implemented for `Rc<u32>`
|
note: required by a bound in `U`
--> $DIR/union-generic.rs:6:12
|
LL | union U<T: Copy> {
| ^^^^ required by this bound in `U`
2018-08-08 12:28:26 +00:00
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0277`.