2018-08-08 14:28:26 +02:00
|
|
|
error[E0568]: auto traits cannot have super traits
|
2020-03-06 10:55:21 -08:00
|
|
|
--> $DIR/traits-inductive-overflow-supertrait-oibit.rs:7:19
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | auto trait Magic: Copy {}
|
2020-03-06 10:55:21 -08:00
|
|
|
| ----- ^^^^ cannot have this super trait
|
|
|
|
| |
|
|
|
|
| auto trait cannot have super traits
|
2020-03-06 11:45:00 -08:00
|
|
|
|
|
|
|
|
help: remove the super traits for the auto trait to be valid
|
|
|
|
|
|
|
|
|
LL | auto trait Magic {}
|
|
|
|
| --
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error[E0277]: the trait bound `NoClone: std::marker::Copy` is not satisfied
|
2019-09-15 21:58:20 -07:00
|
|
|
--> $DIR/traits-inductive-overflow-supertrait-oibit.rs:15:23
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-08-24 14:44:43 -07:00
|
|
|
LL | fn copy<T: Magic>(x: T) -> (T, T) { (x, x) }
|
2019-09-04 10:17:59 -07:00
|
|
|
| ---- ----- required by this bound in `copy`
|
2019-08-24 14:44:43 -07:00
|
|
|
...
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let (a, b) = copy(NoClone);
|
2019-09-15 21:58:20 -07:00
|
|
|
| ^^^^^^^ the trait `std::marker::Copy` is not implemented for `NoClone`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
= note: required because of the requirements on the impl of `Magic` for `NoClone`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2019-10-08 13:51:58 +02:00
|
|
|
Some errors have detailed explanations: E0277, E0568.
|
|
|
|
For more information about an error, try `rustc --explain E0277`.
|