1 warning: Trait bound i32: Foo does not depend on any type or lifetime parameters
2 --> $DIR/trivial-bounds-inconsistent.rs:14:19
4 LL | enum E where i32: Foo { V }
7 = note: `#[warn(trivial_bounds)]` on by default
9 warning: Trait bound i32: Foo does not depend on any type or lifetime parameters
10 --> $DIR/trivial-bounds-inconsistent.rs:16:21
12 LL | struct S where i32: Foo;
15 warning: Trait bound i32: Foo does not depend on any type or lifetime parameters
16 --> $DIR/trivial-bounds-inconsistent.rs:18:20
18 LL | trait T where i32: Foo {}
21 warning: Trait bound i32: Foo does not depend on any type or lifetime parameters
22 --> $DIR/trivial-bounds-inconsistent.rs:20:20
24 LL | union U where i32: Foo { f: i32 }
27 warning: where clauses are not enforced in type aliases
28 --> $DIR/trivial-bounds-inconsistent.rs:22:14
30 LL | type Y where i32: Foo = ();
33 = note: `#[warn(type_alias_bounds)]` on by default
34 help: the clause will not be checked when the type alias is used, and should be removed
39 warning: Trait bound i32: Foo does not depend on any type or lifetime parameters
40 --> $DIR/trivial-bounds-inconsistent.rs:22:19
42 LL | type Y where i32: Foo = ();
45 warning: Trait bound i32: Foo does not depend on any type or lifetime parameters
46 --> $DIR/trivial-bounds-inconsistent.rs:26:28
48 LL | impl Foo for () where i32: Foo {
51 warning: Trait bound i32: Foo does not depend on any type or lifetime parameters
52 --> $DIR/trivial-bounds-inconsistent.rs:34:19
54 LL | fn f() where i32: Foo {
57 warning: Trait bound &'static str: Foo does not depend on any type or lifetime parameters
58 --> $DIR/trivial-bounds-inconsistent.rs:41:28
60 LL | fn g() where &'static str: Foo {
63 warning: Trait bound str: std::marker::Sized does not depend on any type or lifetime parameters
64 --> $DIR/trivial-bounds-inconsistent.rs:55:37
66 LL | struct TwoStrs(str, str) where str: Sized;
69 warning: Trait bound for<'a> Dst<(dyn A + 'a)>: std::marker::Sized does not depend on any type or lifetime parameters
70 --> $DIR/trivial-bounds-inconsistent.rs:57:51
72 LL | fn unsized_local() where for<'a> Dst<dyn A + 'a>: Sized {
75 warning: Trait bound str: std::marker::Sized does not depend on any type or lifetime parameters
76 --> $DIR/trivial-bounds-inconsistent.rs:61:35
78 LL | fn return_str() -> str where str: Sized {
81 warning: Trait bound std::string::String: std::ops::Neg does not depend on any type or lifetime parameters
82 --> $DIR/trivial-bounds-inconsistent.rs:65:46
84 LL | fn use_op(s: String) -> String where String: ::std::ops::Neg<Output=String> {
85 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
87 warning: Trait bound i32: std::iter::Iterator does not depend on any type or lifetime parameters
88 --> $DIR/trivial-bounds-inconsistent.rs:70:25
90 LL | fn use_for() where i32: Iterator {