2018-08-08 14:28:26 +02:00
|
|
|
error[E0275]: overflow evaluating the requirement `NoClone: Magic`
|
2021-02-08 23:15:45 +01:00
|
|
|
--> $DIR/supertrait.rs:13:18
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let (a, b) = copy(NoClone);
|
2018-08-08 14:28:26 +02:00
|
|
|
| ^^^^
|
|
|
|
|
|
2022-08-15 21:31:37 +01:00
|
|
|
note: required for `NoClone` to implement `Magic`
|
2021-03-30 13:37:30 -07:00
|
|
|
--> $DIR/supertrait.rs:5:16
|
|
|
|
|
|
|
|
|
LL | impl<T: Magic> Magic for T {}
|
2023-01-11 03:21:11 +00:00
|
|
|
| ----- ^^^^^ ^
|
|
|
|
| |
|
|
|
|
| unsatisfied trait bound introduced here
|
2021-07-31 09:26:55 -07:00
|
|
|
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 14:28:26 +02:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0275`.
|