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