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

15 lines
500 B
Plaintext
Raw Normal View History

2018-08-08 14:28:26 +02:00
error[E0275]: overflow evaluating the requirement `NoClone: Magic`
2018-12-25 08:56:47 -07:00
--> $DIR/traits-inductive-overflow-supertrait.rs:13:18
2018-08-08 14:28:26 +02:00
|
LL | fn copy<T: Magic>(x: T) -> (T, T) { (x, x) }
2020-04-05 22:15:06 -07:00
| ----- required by this bound in `copy`
...
2019-03-09 15:03:44 +03:00
LL | let (a, b) = copy(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 previous error
For more information about this error, try `rustc --explain E0275`.