]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-trivial_bounds.stderr
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / feature-gates / feature-gate-trivial_bounds.stderr
1 error[E0277]: the trait bound `i32: Foo` is not satisfied
2   --> $DIR/feature-gate-trivial_bounds.rs:10:14
3    |
4 LL | 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
11 error[E0277]: the trait bound `i32: Foo` is not satisfied
12   --> $DIR/feature-gate-trivial_bounds.rs:12:16
13    |
14 LL | 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
21 error[E0277]: the trait bound `i32: Foo` is not satisfied
22   --> $DIR/feature-gate-trivial_bounds.rs:14:15
23    |
24 LL | 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
31 error[E0277]: the trait bound `i32: Foo` is not satisfied
32   --> $DIR/feature-gate-trivial_bounds.rs:16:15
33    |
34 LL | 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
41 error[E0277]: the trait bound `i32: Foo` is not satisfied
42   --> $DIR/feature-gate-trivial_bounds.rs:20:23
43    |
44 LL | 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
51 error[E0277]: the trait bound `i32: Foo` is not satisfied
52   --> $DIR/feature-gate-trivial_bounds.rs:28:14
53    |
54 LL | 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
61 error[E0277]: the trait bound `String: Neg` is not satisfied
62   --> $DIR/feature-gate-trivial_bounds.rs:36:38
63    |
64 LL | 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
70 error[E0277]: `i32` is not an iterator
71   --> $DIR/feature-gate-trivial_bounds.rs:40:20
72    |
73 LL | 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
81 error[E0277]: the size for values of type `str` cannot be known at compilation time
82   --> $DIR/feature-gate-trivial_bounds.rs:52:32
83    |
84 LL | 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
91 error[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    |
94 LL | 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)`
98 note: required because it appears within the type `Dst<(dyn A + 'static)>`
99   --> $DIR/feature-gate-trivial_bounds.rs:48:8
100    |
101 LL | struct Dst<X: ?Sized> {
102    |        ^^^
103    = help: see issue #48214
104    = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
105
106 error[E0277]: the size for values of type `str` cannot be known at compilation time
107   --> $DIR/feature-gate-trivial_bounds.rs:59:30
108    |
109 LL | 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
116 error: aborting due to 11 previous errors
117
118 For more information about this error, try `rustc --explain E0277`.