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.

21 lines
608 B
Plaintext
Raw Normal View History

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