fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error: Trait bound i32: std::marker::Copy does not depend on any type or lifetime parameters 2 --> $DIR/trivial-bounds-lint.rs:5:21 3 | 4LL | struct A where i32: Copy; 5 | ^^^^ 6 | 7note: lint level defined here 8 --> $DIR/trivial-bounds-lint.rs:3:9 9 | 10LL | #![deny(trivial_bounds)] 11 | ^^^^^^^^^^^^^^ 12 13error: Trait bound i32: X<()> does not depend on any type or lifetime parameters 14 --> $DIR/trivial-bounds-lint.rs:18:30 15 | 16LL | fn global_param() where i32: X<()> {} 17 | ^^^^^ 18 19error: Trait bound i32: Z does not depend on any type or lifetime parameters 20 --> $DIR/trivial-bounds-lint.rs:22:35 21 | 22LL | fn global_projection() where i32: Z<S = i32> {} 23 | ^^^^^^^^^^ 24 25error: Lifetime bound i32 : 'static does not depend on any type or lifetime parameters 26 --> $DIR/trivial-bounds-lint.rs:29:34 27 | 28LL | fn global_lifetimes() where i32: 'static, &'static str: 'static {} 29 | ^^^^^^^ 30 31error: Lifetime bound &'static str : 'static does not depend on any type or lifetime parameters 32 --> $DIR/trivial-bounds-lint.rs:29:57 33 | 34LL | fn global_lifetimes() where i32: 'static, &'static str: 'static {} 35 | ^^^^^^^ 36 37error: Lifetime bound 'static : 'static does not depend on any type or lifetime parameters 38 --> $DIR/trivial-bounds-lint.rs:35:37 39 | 40LL | fn global_outlives() where 'static: 'static {} 41 | ^^^^^^^ 42 43error: Trait bound i32: std::marker::Copy does not depend on any type or lifetime parameters 44 --> $DIR/trivial-bounds-lint.rs:38:46 45 | 46LL | fn mixed_bounds<T: Copy>() where i32: X<T> + Copy {} 47 | ^^^^ 48 49error: aborting due to 7 previous errors 50