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

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