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

17 lines
581 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0275]: overflow evaluating the requirement `NoClone: Magic`
2018-12-25 09:56:47 -06:00
--> $DIR/traits-inductive-overflow-supertrait.rs:13:18
2018-08-08 07:28:26 -05:00
|
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`
2018-12-25 09:56:47 -06:00
--> $DIR/traits-inductive-overflow-supertrait.rs:7:1
2018-08-08 07:28:26 -05:00
|
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`.