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
|
|
|
| ^^^^
|
|
|
|
|
|
2022-08-15 15:31:37 -05:00
|
|
|
note: required for `NoClone` to implement `Magic`
|
2021-03-30 15:37:30 -05:00
|
|
|
--> $DIR/supertrait.rs:5:16
|
|
|
|
|
|
|
|
|
LL | impl<T: Magic> Magic for T {}
|
2023-01-10 21:21:11 -06:00
|
|
|
| ----- ^^^^^ ^
|
|
|
|
| |
|
|
|
|
| unsatisfied trait bound introduced here
|
2021-07-31 11:26:55 -05: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 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0275`.
|