]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/inductive-overflow/supertrait-auto-trait.stderr
Rollup merge of #87354 - Wind-River:2021_master, r=kennytm
[rust.git] / src / test / ui / traits / inductive-overflow / supertrait-auto-trait.stderr
1 error[E0568]: auto traits cannot have super traits
2   --> $DIR/supertrait-auto-trait.rs:8:19
3    |
4 LL | auto trait Magic: Copy {}
5    |            -----  ^^^^ help: remove the super traits
6    |            |
7    |            auto trait cannot have super traits
8
9 error[E0277]: the trait bound `NoClone: Copy` is not satisfied
10   --> $DIR/supertrait-auto-trait.rs:16:23
11    |
12 LL | fn copy<T: Magic>(x: T) -> (T, T) { (x, x) }
13    |            ----- required by this bound in `copy`
14 ...
15 LL |     let (a, b) = copy(NoClone);
16    |                       ^^^^^^^ the trait `Copy` is not implemented for `NoClone`
17    |
18    = note: required because of the requirements on the impl of `Magic` for `NoClone`
19
20 error: aborting due to 2 previous errors
21
22 Some errors have detailed explanations: E0277, E0568.
23 For more information about an error, try `rustc --explain E0277`.