rust/tests/ui/traits/inductive-overflow/supertrait.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
676 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0275]: overflow evaluating the requirement `NoClone: Magic`
2021-02-08 16:15:45 -06:00
--> $DIR/supertrait.rs:13:18
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | let (a, b) = copy(NoClone);
2018-08-08 07:28:26 -05:00
| ^^^^
|
note: required for `NoClone` to implement `Magic`
--> $DIR/supertrait.rs:5:16
|
LL | impl<T: Magic> Magic for T {}
| ----- ^^^^^ ^
| |
| unsatisfied trait bound introduced here
note: required by a bound in `copy`
--> $DIR/supertrait.rs:7:12
|
LL | fn copy<T: Magic>(x: T) -> (T, T) { (x, x) }
| ^^^^^ required by this bound in `copy`
2018-08-08 07:28:26 -05:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0275`.