fork/rust

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

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

master
4.8 KiB118 linesraw
1error[E0277]: the trait bound `i32: Foo` is not satisfied
2  --> $DIR/feature-gate-trivial_bounds.rs:10:14
3   |
4LL | enum E where i32: Foo { V }
5   |              ^^^^^^^^ the trait `Foo` is not implemented for `i32`
6   |
7   = help: the trait `Foo` is implemented for `()`
8   = help: see issue #48214
9   = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
10
11error[E0277]: the trait bound `i32: Foo` is not satisfied
12  --> $DIR/feature-gate-trivial_bounds.rs:12:16
13   |
14LL | struct S where i32: Foo;
15   |                ^^^^^^^^ the trait `Foo` is not implemented for `i32`
16   |
17   = help: the trait `Foo` is implemented for `()`
18   = help: see issue #48214
19   = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
20
21error[E0277]: the trait bound `i32: Foo` is not satisfied
22  --> $DIR/feature-gate-trivial_bounds.rs:14:15
23   |
24LL | trait T where i32: Foo {}
25   |               ^^^^^^^^ the trait `Foo` is not implemented for `i32`
26   |
27   = help: the trait `Foo` is implemented for `()`
28   = help: see issue #48214
29   = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
30
31error[E0277]: the trait bound `i32: Foo` is not satisfied
32  --> $DIR/feature-gate-trivial_bounds.rs:16:15
33   |
34LL | union U where i32: Foo { f: i32 }
35   |               ^^^^^^^^ the trait `Foo` is not implemented for `i32`
36   |
37   = help: the trait `Foo` is implemented for `()`
38   = help: see issue #48214
39   = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
40
41error[E0277]: the trait bound `i32: Foo` is not satisfied
42  --> $DIR/feature-gate-trivial_bounds.rs:20:23
43   |
44LL | impl Foo for () where i32: Foo {
45   |                       ^^^^^^^^ the trait `Foo` is not implemented for `i32`
46   |
47   = help: the trait `Foo` is implemented for `()`
48   = help: see issue #48214
49   = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
50
51error[E0277]: the trait bound `i32: Foo` is not satisfied
52  --> $DIR/feature-gate-trivial_bounds.rs:28:14
53   |
54LL | fn f() where i32: Foo
55   |              ^^^^^^^^ the trait `Foo` is not implemented for `i32`
56   |
57   = help: the trait `Foo` is implemented for `()`
58   = help: see issue #48214
59   = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
60
61error[E0277]: the trait bound `String: Neg` is not satisfied
62  --> $DIR/feature-gate-trivial_bounds.rs:36:38
63   |
64LL | fn use_op(s: String) -> String where String: ::std::ops::Neg<Output=String> {
65   |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Neg` is not implemented for `String`
66   |
67   = help: see issue #48214
68   = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
69
70error[E0277]: `i32` is not an iterator
71  --> $DIR/feature-gate-trivial_bounds.rs:40:20
72   |
73LL | fn use_for() where i32: Iterator {
74   |                    ^^^^^^^^^^^^^ `i32` is not an iterator
75   |
76   = help: the trait `Iterator` is not implemented for `i32`
77   = note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
78   = help: see issue #48214
79   = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
80
81error[E0277]: the size for values of type `str` cannot be known at compilation time
82  --> $DIR/feature-gate-trivial_bounds.rs:52:32
83   |
84LL | struct TwoStrs(str, str) where str: Sized;
85   |                                ^^^^^^^^^^ doesn't have a size known at compile-time
86   |
87   = help: the trait `Sized` is not implemented for `str`
88   = help: see issue #48214
89   = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
90
91error[E0277]: the size for values of type `(dyn A + 'static)` cannot be known at compilation time
92  --> $DIR/feature-gate-trivial_bounds.rs:55:26
93   |
94LL | fn unsized_local() where Dst<dyn A>: Sized {
95   |                          ^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
96   |
97   = help: within `Dst<(dyn A + 'static)>`, the trait `Sized` is not implemented for `(dyn A + 'static)`
98note: required because it appears within the type `Dst<dyn A>`
99  --> $DIR/feature-gate-trivial_bounds.rs:48:8
100   |
101LL | struct Dst<X: ?Sized> {
102   |        ^^^
103   = help: see issue #48214
104   = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
105
106error[E0277]: the size for values of type `str` cannot be known at compilation time
107  --> $DIR/feature-gate-trivial_bounds.rs:59:30
108   |
109LL | fn return_str() -> str where str: Sized {
110   |                              ^^^^^^^^^^ doesn't have a size known at compile-time
111   |
112   = help: the trait `Sized` is not implemented for `str`
113   = help: see issue #48214
114   = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
115
116error: aborting due to 11 previous errors
117
118For more information about this error, try `rustc --explain E0277`.