Debian Codegraph @

debian/rust-vendor/zerocopy/tests/ui/diagnostic-not-implemented.msrv.stderr

raw
1 error[E0277]: the trait bound `NotZerocopy: FromBytes` is not satisfied
2 --> $DIR/diagnostic-not-implemented.rs:16:24
3 |
4 16 | takes_from_bytes::<NotZerocopy>();
5 | ^^^^^^^^^^^ the trait `FromBytes` is not implemented for `NotZerocopy`
6 |
7 note: required by a bound in `takes_from_bytes`
8 --> $DIR/diagnostic-not-implemented.rs:77:24
9 |
10 77 | fn takes_from_bytes<T: FromBytes>() {}
11 | ^^^^^^^^^ required by this bound in `takes_from_bytes`
12
13 error[E0277]: the trait bound `NotZerocopy: FromZeros` is not satisfied
14 --> $DIR/diagnostic-not-implemented.rs:18:24
15 |
16 18 | takes_from_zeros::<NotZerocopy>();
17 | ^^^^^^^^^^^ the trait `FromZeros` is not implemented for `NotZerocopy`
18 |
19 note: required by a bound in `takes_from_zeros`
20 --> $DIR/diagnostic-not-implemented.rs:78:24
21 |
22 78 | fn takes_from_zeros<T: FromZeros>() {}
23 | ^^^^^^^^^ required by this bound in `takes_from_zeros`
24
25 error[E0277]: the trait bound `NotZerocopy: Immutable` is not satisfied
26 --> $DIR/diagnostic-not-implemented.rs:20:23
27 |
28 20 | takes_immutable::<NotZerocopy>();
29 | ^^^^^^^^^^^ the trait `Immutable` is not implemented for `NotZerocopy`
30 |
31 note: required by a bound in `takes_immutable`
32 --> $DIR/diagnostic-not-implemented.rs:79:23
33 |
34 79 | fn takes_immutable<T: Immutable>() {}
35 | ^^^^^^^^^ required by this bound in `takes_immutable`
36
37 error[E0277]: the trait bound `NotZerocopy: IntoBytes` is not satisfied
38 --> $DIR/diagnostic-not-implemented.rs:22:24
39 |
40 22 | takes_into_bytes::<NotZerocopy>();
41 | ^^^^^^^^^^^ the trait `IntoBytes` is not implemented for `NotZerocopy`
42 |
43 note: required by a bound in `takes_into_bytes`
44 --> $DIR/diagnostic-not-implemented.rs:80:24
45 |
46 80 | fn takes_into_bytes<T: IntoBytes>() {}
47 | ^^^^^^^^^ required by this bound in `takes_into_bytes`
48
49 error[E0277]: the trait bound `NotZerocopy: KnownLayout` is not satisfied
50 --> $DIR/diagnostic-not-implemented.rs:24:26
51 |
52 24 | takes_known_layout::<NotZerocopy>();
53 | ^^^^^^^^^^^ the trait `KnownLayout` is not implemented for `NotZerocopy`
54 |
55 note: required by a bound in `takes_known_layout`
56 --> $DIR/diagnostic-not-implemented.rs:81:26
57 |
58 81 | fn takes_known_layout<T: KnownLayout>() {}
59 | ^^^^^^^^^^^ required by this bound in `takes_known_layout`
60
61 error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied
62 --> $DIR/diagnostic-not-implemented.rs:26:28
63 |
64 26 | takes_try_from_bytes::<NotZerocopy>();
65 | ^^^^^^^^^^^ the trait `TryFromBytes` is not implemented for `NotZerocopy`
66 |
67 note: required by a bound in `takes_try_from_bytes`
68 --> $DIR/diagnostic-not-implemented.rs:82:28
69 |
70 82 | fn takes_try_from_bytes<T: TryFromBytes>() {}
71 | ^^^^^^^^^^^^ required by this bound in `takes_try_from_bytes`
72
73 error[E0277]: the trait bound `NotZerocopy: zerocopy::Unaligned` is not satisfied
74 --> $DIR/diagnostic-not-implemented.rs:28:23
75 |
76 28 | takes_unaligned::<NotZerocopy>();
77 | ^^^^^^^^^^^ the trait `zerocopy::Unaligned` is not implemented for `NotZerocopy`
78 |
79 note: required by a bound in `takes_unaligned`
80 --> $DIR/diagnostic-not-implemented.rs:83:23
81 |
82 83 | fn takes_unaligned<T: Unaligned>() {}
83 | ^^^^^^^^^ required by this bound in `takes_unaligned`
84
85 error[E0277]: the trait bound `NotZerocopy: Immutable` is not satisfied
86 --> $DIR/diagnostic-not-implemented.rs:66:19
87 |
88 66 | Foo.write_obj(NotZerocopy(()));
89 | ^^^^^^^^^^^^^^^ the trait `Immutable` is not implemented for `NotZerocopy`
90
91 error[E0277]: the trait bound `NotZerocopy: IntoBytes` is not satisfied
92 --> $DIR/diagnostic-not-implemented.rs:66:19
93 |
94 66 | Foo.write_obj(NotZerocopy(()));
95 | ^^^^^^^^^^^^^^^ the trait `IntoBytes` is not implemented for `NotZerocopy`
96
97 error: aborting due to 9 previous errors
98
99 For more information about this error, try `rustc --explain E0277`.