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 LL - type Y where i32: Foo = ();
40 warning: Trait bound i32: Foo does not depend on any type or lifetime parameters
41 --> $DIR/trivial-bounds-inconsistent.rs:22:19
43 LL | type Y where i32: Foo = ();
46 warning: Trait bound i32: Foo does not depend on any type or lifetime parameters
47 --> $DIR/trivial-bounds-inconsistent.rs:26:28
49 LL | impl Foo for () where i32: Foo {
52 warning: Trait bound i32: Foo does not depend on any type or lifetime parameters
53 --> $DIR/trivial-bounds-inconsistent.rs:34:19
55 LL | fn f() where i32: Foo {
58 warning: Trait bound &'static str: Foo does not depend on any type or lifetime parameters
59 --> $DIR/trivial-bounds-inconsistent.rs:41:28
61 LL | fn g() where &'static str: Foo {
64 warning: Trait bound str: Sized does not depend on any type or lifetime parameters
65 --> $DIR/trivial-bounds-inconsistent.rs:55:37
67 LL | struct TwoStrs(str, str) where str: Sized;
70 warning: Trait bound for<'a> Dst<(dyn A + 'a)>: Sized does not depend on any type or lifetime parameters
71 --> $DIR/trivial-bounds-inconsistent.rs:57:51
73 LL | fn unsized_local() where for<'a> Dst<dyn A + 'a>: Sized {
76 warning: Trait bound str: Sized does not depend on any type or lifetime parameters
77 --> $DIR/trivial-bounds-inconsistent.rs:61:35
79 LL | fn return_str() -> str where str: Sized {
82 warning: Trait bound String: Neg does not depend on any type or lifetime parameters
83 --> $DIR/trivial-bounds-inconsistent.rs:65:46
85 LL | fn use_op(s: String) -> String where String: ::std::ops::Neg<Output=String> {
86 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
88 warning: Trait bound i32: Iterator does not depend on any type or lifetime parameters
89 --> $DIR/trivial-bounds-inconsistent.rs:70:25
91 LL | fn use_for() where i32: Iterator {
94 warning: 14 warnings emitted