rust/src/test/ui/traits/traits-inductive-overflow-supertrait-oibit.stderr

24 lines
894 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0568]: auto traits cannot have super traits
--> $DIR/traits-inductive-overflow-supertrait-oibit.rs:17:1
|
LL | auto trait Magic: Copy {} //~ ERROR E0568
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `NoClone: std::marker::Copy` is not satisfied
--> $DIR/traits-inductive-overflow-supertrait-oibit.rs:25:18
|
LL | let (a, b) = copy(NoClone); //~ ERROR
| ^^^^ the trait `std::marker::Copy` is not implemented for `NoClone`
|
= note: required because of the requirements on the impl of `Magic` for `NoClone`
note: required by `copy`
--> $DIR/traits-inductive-overflow-supertrait-oibit.rs:19:1
|
LL | fn copy<T: Magic>(x: T) -> (T, T) { (x, x) }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors
Some errors occurred: E0277, E0568.
For more information about an error, try `rustc --explain E0277`.