File: unsatisfied-bounds.stderr

package info (click to toggle)
rustc 1.85.0%2Bdfsg2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 893,176 kB
  • sloc: xml: 158,127; python: 35,830; javascript: 19,497; cpp: 19,002; sh: 17,245; ansic: 13,127; asm: 4,376; makefile: 1,051; lisp: 29; perl: 29; ruby: 19; sql: 11
file content (66 lines) | stat: -rw-r--r-- 2,436 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
error[E0277]: the trait bound `String: Copy` is not satisfied
  --> $DIR/unsatisfied-bounds.rs:30:18
   |
LL |     let () = C::<String>;
   |                  ^^^^^^ the trait `Copy` is not implemented for `String`
   |
note: required by a bound in `C`
  --> $DIR/unsatisfied-bounds.rs:8:12
   |
LL | const C<T: Copy>: () = ();
   |            ^^^^ required by this bound in `C`

error[E0277]: the trait bound `Infallible: From<()>` is not satisfied
  --> $DIR/unsatisfied-bounds.rs:31:18
   |
LL |     let () = K::<()>;
   |                  ^^ the trait `From<()>` is not implemented for `Infallible`
   |
   = help: the trait `From<()>` is not implemented for `Infallible`
           but trait `From<!>` is implemented for it
   = help: for that trait implementation, expected `!`, found `()`
note: required by a bound in `K`
  --> $DIR/unsatisfied-bounds.rs:12:17
   |
LL | const K<T>: () = ()
   |       - required by a bound in this constant
LL | where
LL |     Infallible: From<T>;
   |                 ^^^^^^^ required by this bound in `K`

error[E0277]: the trait bound `Vec<u8>: Copy` is not satisfied
  --> $DIR/unsatisfied-bounds.rs:32:26
   |
LL |     let _ = <() as Trait<Vec<u8>>>::A;
   |                          ^^^^^^^ the trait `Copy` is not implemented for `Vec<u8>`
   |
note: required by a bound in `Trait::A`
  --> $DIR/unsatisfied-bounds.rs:17:12
   |
LL |     const A: u32
   |           - required by a bound in this associated constant
LL |     where
LL |         P: Copy;
   |            ^^^^ required by this bound in `Trait::A`

error[E0277]: the trait bound `Infallible: From<()>` is not satisfied
  --> $DIR/unsatisfied-bounds.rs:33:46
   |
LL |     let _ = <() as Trait<&'static str>>::B::<()>;
   |                                              ^^ the trait `From<()>` is not implemented for `Infallible`
   |
   = help: the trait `From<()>` is not implemented for `Infallible`
           but trait `From<!>` is implemented for it
   = help: for that trait implementation, expected `!`, found `()`
note: required by a bound in `Trait::B`
  --> $DIR/unsatisfied-bounds.rs:21:21
   |
LL |     const B<T>: u32
   |           - required by a bound in this associated constant
LL |     where
LL |         Infallible: From<T>;
   |                     ^^^^^^^ required by this bound in `Trait::B`

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0277`.