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

17 lines
582 B
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error[E0275]: overflow evaluating the requirement `NoClone: Magic`
--> $DIR/traits-inductive-overflow-supertrait.rs:23:18
|
LL | let (a, b) = copy(NoClone); //~ ERROR E0275
| ^^^^
|
= note: required because of the requirements on the impl of `Magic` for `NoClone`
note: required by `copy`
--> $DIR/traits-inductive-overflow-supertrait.rs:17:1
|
LL | fn copy<T: Magic>(x: T) -> (T, T) { (x, x) }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0275`.