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