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