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
36 warning: Trait bound i32: Foo does not depend on any type or lifetime parameters
37 --> $DIR/trivial-bounds-inconsistent.rs:22:19
39 LL | type Y where i32: Foo = ();
42 warning: Trait bound i32: Foo does not depend on any type or lifetime parameters
43 --> $DIR/trivial-bounds-inconsistent.rs:24:28
45 LL | impl Foo for () where i32: Foo {
48 warning: Trait bound i32: Foo does not depend on any type or lifetime parameters
49 --> $DIR/trivial-bounds-inconsistent.rs:32:19
51 LL | fn f() where i32: Foo {
54 warning: Trait bound &'static str: Foo does not depend on any type or lifetime parameters
55 --> $DIR/trivial-bounds-inconsistent.rs:39:28
57 LL | fn g() where &'static str: Foo {
60 warning: Trait bound str: std::marker::Sized does not depend on any type or lifetime parameters
61 --> $DIR/trivial-bounds-inconsistent.rs:53:37
63 LL | struct TwoStrs(str, str) where str: Sized;
66 warning: Trait bound for<'a> Dst<(dyn A + 'a)>: std::marker::Sized does not depend on any type or lifetime parameters
67 --> $DIR/trivial-bounds-inconsistent.rs:55:51
69 LL | fn unsized_local() where for<'a> Dst<dyn A + 'a>: Sized {
72 warning: Trait bound str: std::marker::Sized does not depend on any type or lifetime parameters
73 --> $DIR/trivial-bounds-inconsistent.rs:59:35
75 LL | fn return_str() -> str where str: Sized {
78 warning: Trait bound std::string::String: std::ops::Neg does not depend on any type or lifetime parameters
79 --> $DIR/trivial-bounds-inconsistent.rs:63:46
81 LL | fn use_op(s: String) -> String where String: ::std::ops::Neg<Output=String> {
82 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
84 warning: Trait bound i32: std::iter::Iterator does not depend on any type or lifetime parameters
85 --> $DIR/trivial-bounds-inconsistent.rs:67:25
87 LL | fn use_for() where i32: Iterator {