2018-08-08 12:28:26 +00:00
|
|
|
error[E0568]: auto traits cannot have super traits
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/traits-inductive-overflow-supertrait-oibit.rs:7:1
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | auto trait Magic: Copy {} //~ ERROR E0568
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `NoClone: std::marker::Copy` is not satisfied
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/traits-inductive-overflow-supertrait-oibit.rs:15:18
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
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`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/traits-inductive-overflow-supertrait-oibit.rs:9:1
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
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`.
|