fork/rust

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

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

master
2.3 KiB64 linesraw
1error[E0277]: the trait bound `String: Copy` is not satisfied
2  --> $DIR/unsatisfied-bounds.rs:30:18
3   |
4LL |     let () = C::<String>;
5   |                  ^^^^^^ the trait `Copy` is not implemented for `String`
6   |
7note: required by a bound in `C`
8  --> $DIR/unsatisfied-bounds.rs:8:12
9   |
10LL | const C<T: Copy>: () = ();
11   |            ^^^^ required by this bound in `C`
12
13error[E0277]: the trait bound `Infallible: From<()>` is not satisfied
14  --> $DIR/unsatisfied-bounds.rs:31:18
15   |
16LL |     let () = K::<()>;
17   |                  ^^ the trait `From<()>` is not implemented for `Infallible`
18   |
19   = help: the trait `From<!>` is implemented for `Infallible`
20   = help: for that trait implementation, expected `!`, found `()`
21note: required by a bound in `K`
22  --> $DIR/unsatisfied-bounds.rs:12:17
23   |
24LL | const K<T>: () = ()
25   |       - required by a bound in this constant
26LL | where
27LL |     Infallible: From<T>;
28   |                 ^^^^^^^ required by this bound in `K`
29
30error[E0277]: the trait bound `Vec<u8>: Copy` is not satisfied
31  --> $DIR/unsatisfied-bounds.rs:32:26
32   |
33LL |     let _ = <() as Trait<Vec<u8>>>::A;
34   |                          ^^^^^^^ the trait `Copy` is not implemented for `Vec<u8>`
35   |
36note: required by a bound in `Trait::A`
37  --> $DIR/unsatisfied-bounds.rs:17:12
38   |
39LL |     const A: u32
40   |           - required by a bound in this associated constant
41LL |     where
42LL |         P: Copy;
43   |            ^^^^ required by this bound in `Trait::A`
44
45error[E0277]: the trait bound `Infallible: From<()>` is not satisfied
46  --> $DIR/unsatisfied-bounds.rs:33:46
47   |
48LL |     let _ = <() as Trait<&'static str>>::B::<()>;
49   |                                              ^^ the trait `From<()>` is not implemented for `Infallible`
50   |
51   = help: the trait `From<!>` is implemented for `Infallible`
52   = help: for that trait implementation, expected `!`, found `()`
53note: required by a bound in `Trait::B`
54  --> $DIR/unsatisfied-bounds.rs:21:21
55   |
56LL |     const B<T>: u32
57   |           - required by a bound in this associated constant
58LL |     where
59LL |         Infallible: From<T>;
60   |                     ^^^^^^^ required by this bound in `Trait::B`
61
62error: aborting due to 4 previous errors
63
64For more information about this error, try `rustc --explain E0277`.