mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-08 07:57:40 +00:00
17 lines
582 B
Plaintext
17 lines
582 B
Plaintext
![]() |
error[E0275]: overflow evaluating the requirement `NoClone: Magic`
|
||
|
--> $DIR/traits-inductive-overflow-supertrait.rs:23:18
|
||
|
|
|
||
|
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`
|
||
|
--> $DIR/traits-inductive-overflow-supertrait.rs:17:1
|
||
|
|
|
||
|
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`.
|