1 error[E0277]: the trait bound `i32: Foo` is not satisfied
2 --> $DIR/feature-gate-trivial_bounds.rs:10:1
4 LL | enum E where i32: Foo { V }
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `i32`
7 = help: see issue #48214
8 = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
10 error[E0277]: the trait bound `i32: Foo` is not satisfied
11 --> $DIR/feature-gate-trivial_bounds.rs:12:1
13 LL | struct S where i32: Foo;
14 | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `i32`
16 = help: see issue #48214
17 = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
19 error[E0277]: the trait bound `i32: Foo` is not satisfied
20 --> $DIR/feature-gate-trivial_bounds.rs:14:1
22 LL | trait T where i32: Foo {}
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `i32`
25 = help: see issue #48214
26 = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
28 error[E0277]: the trait bound `i32: Foo` is not satisfied
29 --> $DIR/feature-gate-trivial_bounds.rs:16:1
31 LL | union U where i32: Foo { f: i32 }
32 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `i32`
34 = help: see issue #48214
35 = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
37 error[E0277]: the trait bound `i32: Foo` is not satisfied
38 --> $DIR/feature-gate-trivial_bounds.rs:20:1
40 LL | / impl Foo for () where i32: Foo {
41 LL | | fn test(&self) {
43 LL | | Foo::test(&4i32);
44 LL | | generic_function(5i32);
47 | |_^ the trait `Foo` is not implemented for `i32`
49 = help: see issue #48214
50 = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
52 error[E0277]: the trait bound `i32: Foo` is not satisfied
53 --> $DIR/feature-gate-trivial_bounds.rs:28:1
55 LL | / fn f() where i32: Foo
59 LL | | Foo::test(&4i32);
60 LL | | generic_function(5i32);
62 | |_^ the trait `Foo` is not implemented for `i32`
64 = help: see issue #48214
65 = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
67 error[E0277]: the trait bound `String: Neg` is not satisfied
68 --> $DIR/feature-gate-trivial_bounds.rs:36:1
70 LL | / fn use_op(s: String) -> String where String: ::std::ops::Neg<Output=String> {
73 | |_^ the trait `Neg` is not implemented for `String`
75 = help: see issue #48214
76 = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
78 error[E0277]: `i32` is not an iterator
79 --> $DIR/feature-gate-trivial_bounds.rs:40:1
81 LL | / fn use_for() where i32: Iterator {
82 LL | | for _ in 2i32 {}
84 | |_^ `i32` is not an iterator
86 = help: the trait `Iterator` is not implemented for `i32`
87 = 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`
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 `str` cannot be known at compilation time
92 --> $DIR/feature-gate-trivial_bounds.rs:52:1
94 LL | struct TwoStrs(str, str) where str: Sized;
95 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
97 = help: the trait `Sized` is not implemented for `str`
98 = help: see issue #48214
99 = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
101 error[E0277]: the size for values of type `(dyn A + 'static)` cannot be known at compilation time
102 --> $DIR/feature-gate-trivial_bounds.rs:55:1
104 LL | / fn unsized_local() where Dst<dyn A>: Sized {
105 LL | | let x: Dst<dyn A> = *(Box::new(Dst { x: 1 }) as Box<Dst<dyn A>>);
107 | |_^ doesn't have a size known at compile-time
109 = help: within `Dst<(dyn A + 'static)>`, the trait `Sized` is not implemented for `(dyn A + 'static)`
110 = note: required because it appears within the type `Dst<(dyn A + 'static)>`
111 = help: see issue #48214
112 = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
114 error[E0277]: the size for values of type `str` cannot be known at compilation time
115 --> $DIR/feature-gate-trivial_bounds.rs:59:1
117 LL | / fn return_str() -> str where str: Sized {
118 LL | | *"Sized".to_string().into_boxed_str()
120 | |_^ doesn't have a size known at compile-time
122 = help: the trait `Sized` is not implemented for `str`
123 = help: see issue #48214
124 = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
126 error: aborting due to 11 previous errors
128 For more information about this error, try `rustc --explain E0277`.