1 error[E0277]: the trait bound `i32: Foo` is not satisfied
2 --> $DIR/feature-gate-trivial_bounds.rs:10:14
4 LL | enum E where i32: Foo { V }
5 | ^^^^^^^^ the trait `Foo` is not implemented for `i32`
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
11 error[E0277]: the trait bound `i32: Foo` is not satisfied
12 --> $DIR/feature-gate-trivial_bounds.rs:12:16
14 LL | struct S where i32: Foo;
15 | ^^^^^^^^ the trait `Foo` is not implemented for `i32`
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
21 error[E0277]: the trait bound `i32: Foo` is not satisfied
22 --> $DIR/feature-gate-trivial_bounds.rs:14:15
24 LL | trait T where i32: Foo {}
25 | ^^^^^^^^ the trait `Foo` is not implemented for `i32`
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
31 error[E0277]: the trait bound `i32: Foo` is not satisfied
32 --> $DIR/feature-gate-trivial_bounds.rs:16:15
34 LL | union U where i32: Foo { f: i32 }
35 | ^^^^^^^^ the trait `Foo` is not implemented for `i32`
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
41 error[E0277]: the trait bound `i32: Foo` is not satisfied
42 --> $DIR/feature-gate-trivial_bounds.rs:20:23
44 LL | impl Foo for () where i32: Foo {
45 | ^^^^^^^^ the trait `Foo` is not implemented for `i32`
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
51 error[E0277]: the trait bound `i32: Foo` is not satisfied
52 --> $DIR/feature-gate-trivial_bounds.rs:28:14
54 LL | fn f() where i32: Foo
55 | ^^^^^^^^ the trait `Foo` is not implemented for `i32`
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
61 error[E0277]: the trait bound `String: Neg` is not satisfied
62 --> $DIR/feature-gate-trivial_bounds.rs:36:38
64 LL | fn use_op(s: String) -> String where String: ::std::ops::Neg<Output=String> {
65 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Neg` is not implemented for `String`
67 = help: see issue #48214
68 = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
70 error[E0277]: `i32` is not an iterator
71 --> $DIR/feature-gate-trivial_bounds.rs:40:20
73 LL | fn use_for() where i32: Iterator {
74 | ^^^^^^^^^^^^^ `i32` is not an iterator
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
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
84 LL | struct TwoStrs(str, str) where str: Sized;
85 | ^^^^^^^^^^ doesn't have a size known at compile-time
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
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
94 LL | fn unsized_local() where Dst<dyn A>: Sized {
95 | ^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
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
101 LL | struct Dst<X: ?Sized> {
103 = help: see issue #48214
104 = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
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
109 LL | fn return_str() -> str where str: Sized {
110 | ^^^^^^^^^^ doesn't have a size known at compile-time
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
116 error: aborting due to 11 previous errors
118 For more information about this error, try `rustc --explain E0277`.