fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
676 B22 linesraw
1error[E0275]: overflow evaluating the requirement `NoClone: Magic`
2  --> $DIR/supertrait.rs:13:18
3   |
4LL |     let (a, b) = copy(NoClone);
5   |                  ^^^^
6   |
7note: required for `NoClone` to implement `Magic`
8  --> $DIR/supertrait.rs:5:16
9   |
10LL | impl<T: Magic> Magic for T {}
11   |         -----  ^^^^^     ^
12   |         |
13   |         unsatisfied trait bound introduced here
14note: required by a bound in `copy`
15  --> $DIR/supertrait.rs:7:12
16   |
17LL | fn copy<T: Magic>(x: T) -> (T, T) { (x, x) }
18   |            ^^^^^ required by this bound in `copy`
19
20error: aborting due to previous error
21
22For more information about this error, try `rustc --explain E0275`.