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