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