|
1 |
| -warning[E0122]: generic bounds are ignored in type aliases |
2 |
| - --> $DIR/param-bounds-ignored.rs:15:1 |
| 1 | +warning: bounds on generic parameters are ignored in type aliases |
| 2 | + --> $DIR/param-bounds-ignored.rs:16:1 |
3 | 3 | |
|
4 |
| -15 | type SVec<T: Send> = Vec<T>; |
| 4 | +16 | type SVec<T: Send> = Vec<T>; |
5 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 6 | + | |
| 7 | + = note: #[warn(ignored_generic_bounds)] on by default |
6 | 8 |
|
7 |
| -warning[E0122]: generic bounds are ignored in type aliases |
8 |
| - --> $DIR/param-bounds-ignored.rs:16:1 |
| 9 | +warning: bounds on generic parameters are ignored in type aliases |
| 10 | + --> $DIR/param-bounds-ignored.rs:17:1 |
9 | 11 | |
|
10 |
| -16 | type VVec<'b, 'a: 'b> = Vec<&'a i32>; |
| 12 | +17 | type VVec<'b, 'a: 'b> = Vec<&'a i32>; |
11 | 13 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
12 | 14 |
|
13 |
| -warning[E0122]: generic bounds are ignored in type aliases |
14 |
| - --> $DIR/param-bounds-ignored.rs:17:1 |
| 15 | +warning: bounds on generic parameters are ignored in type aliases |
| 16 | + --> $DIR/param-bounds-ignored.rs:18:1 |
15 | 17 | |
|
16 |
| -17 | type WVec<'b, T: 'b> = Vec<T>; |
| 18 | +18 | type WVec<'b, T: 'b> = Vec<T>; |
17 | 19 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
18 | 20 |
|
| 21 | +warning: where clauses are ignored in trait bounds |
| 22 | + --> $DIR/param-bounds-ignored.rs:19:1 |
| 23 | + | |
| 24 | +19 | type W2Vec<'b, T> where T: 'b = Vec<T>; |
| 25 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 26 | + |
| 27 | +warning: bounds on generic parameters are ignored in higher-ranked function types (i.e., `for`) |
| 28 | + --> $DIR/param-bounds-ignored.rs:39:8 |
| 29 | + | |
| 30 | +39 | f: for<'xa, 'xb: 'xa> fn(&'xa i32, &'xb i32) -> &'xa i32) |
| 31 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 32 | + |
| 33 | +warning: bounds on generic parameters are ignored in higher-ranked trait bounds (i.e., `for`) |
| 34 | + --> $DIR/param-bounds-ignored.rs:46:20 |
| 35 | + | |
| 36 | +46 | fn bar2<'a, 'b, F: for<'xa, 'xb: 'xa> Fn(&'xa i32, &'xb i32) -> &'xa i32>( |
| 37 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 38 | + |
| 39 | +warning: bounds on generic parameters are ignored in higher-ranked trait bounds (i.e., `for`) |
| 40 | + --> $DIR/param-bounds-ignored.rs:60:14 |
| 41 | + | |
| 42 | +60 | where F: for<'xa, 'xb: 'xa> Fn(&'xa i32, &'xb i32) -> &'xa i32 |
| 43 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 44 | + |
| 45 | +warning: bounds on generic parameters are ignored in higher-ranked trait bounds (i.e., `for`) |
| 46 | + --> $DIR/param-bounds-ignored.rs:71:11 |
| 47 | + | |
| 48 | +71 | where for<'xa, 'xb: 'xa> F: Fn(&'xa i32, &'xb i32) -> &'xa i32 |
| 49 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 50 | + |
| 51 | +warning: bounds on generic parameters are ignored in higher-ranked trait bounds (i.e., `for`) |
| 52 | + --> $DIR/param-bounds-ignored.rs:78:14 |
| 53 | + | |
| 54 | +78 | struct S1<F: for<'xa, 'xb: 'xa> Fn(&'xa i32, &'xb i32) -> &'xa i32>(F); |
| 55 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 56 | + |
| 57 | +warning: bounds on generic parameters are ignored in higher-ranked trait bounds (i.e., `for`) |
| 58 | + --> $DIR/param-bounds-ignored.rs:79:26 |
| 59 | + | |
| 60 | +79 | struct S2<F>(F) where F: for<'xa, 'xb: 'xa> Fn(&'xa i32, &'xb i32) -> &'xa i32; |
| 61 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 62 | + |
| 63 | +warning: bounds on generic parameters are ignored in higher-ranked trait bounds (i.e., `for`) |
| 64 | + --> $DIR/param-bounds-ignored.rs:80:23 |
| 65 | + | |
| 66 | +80 | struct S3<F>(F) where for<'xa, 'xb: 'xa> F: Fn(&'xa i32, &'xb i32) -> &'xa i32; |
| 67 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 68 | + |
| 69 | +warning: bounds on generic parameters are ignored in higher-ranked function types (i.e., `for`) |
| 70 | + --> $DIR/param-bounds-ignored.rs:82:15 |
| 71 | + | |
| 72 | +82 | struct S_fnty(for<'xa, 'xb: 'xa> fn(&'xa i32, &'xb i32) -> &'xa i32); |
| 73 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 74 | + |
| 75 | +warning: bounds on generic parameters are ignored in higher-ranked trait bounds (i.e., `for`) |
| 76 | + --> $DIR/param-bounds-ignored.rs:84:15 |
| 77 | + | |
| 78 | +84 | type T1 = Box<for<'xa, 'xb: 'xa> Fn(&'xa i32, &'xb i32) -> &'xa i32>; |
| 79 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 80 | + |
| 81 | +warning: bounds on generic parameters are ignored in higher-ranked function types (i.e., `for`) |
| 82 | + --> $DIR/param-bounds-ignored.rs:87:20 |
| 83 | + | |
| 84 | +87 | let _ : Option<for<'xa, 'xb: 'xa> fn(&'xa i32, &'xb i32) -> &'xa i32> = None; |
| 85 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 86 | + |
| 87 | +warning: bounds on generic parameters are ignored in higher-ranked trait bounds (i.e., `for`) |
| 88 | + --> $DIR/param-bounds-ignored.rs:88:24 |
| 89 | + | |
| 90 | +88 | let _ : Option<Box<for<'xa, 'xb: 'xa> Fn(&'xa i32, &'xb i32) -> &'xa i32>> = None; |
| 91 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 92 | + |
0 commit comments