|
| 1 | +error: lifetime may not live long enough |
| 2 | + --> $DIR/normalization-3.rs:32:12 |
| 3 | + | |
| 4 | +LL | fn test_local<'a>() { |
| 5 | + | -- lifetime `'a` defined here |
| 6 | +LL | let _: Ty<'a> = MyTy::Unit; |
| 7 | + | ^^^^^^ requires that `'a` must outlive `'static` |
| 8 | + |
| 9 | +error: lifetime may not live long enough |
| 10 | + --> $DIR/normalization-3.rs:43:5 |
| 11 | + | |
| 12 | +LL | fn test_path<'a, 'b, 'c, 'd>() { |
| 13 | + | -- lifetime `'a` defined here |
| 14 | +LL | <Ty<'a>>::method::<Ty<'static>>; |
| 15 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static` |
| 16 | + |
| 17 | +error: lifetime may not live long enough |
| 18 | + --> $DIR/normalization-3.rs:45:5 |
| 19 | + | |
| 20 | +LL | fn test_path<'a, 'b, 'c, 'd>() { |
| 21 | + | -- lifetime `'b` defined here |
| 22 | +... |
| 23 | +LL | <Ty<'static>>::method::<Ty<'b>>; |
| 24 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'b` must outlive `'static` |
| 25 | + |
| 26 | +error: lifetime may not live long enough |
| 27 | + --> $DIR/normalization-3.rs:48:5 |
| 28 | + | |
| 29 | +LL | fn test_path<'a, 'b, 'c, 'd>() { |
| 30 | + | -- lifetime `'c` defined here |
| 31 | +... |
| 32 | +LL | MyTy::Unit::<Ty<'c>>; |
| 33 | + | ^^^^^^^^^^^^^^^^^^^^ requires that `'c` must outlive `'static` |
| 34 | + |
| 35 | +help: the following changes may resolve your lifetime errors |
| 36 | + | |
| 37 | + = help: replace `'a` with `'static` |
| 38 | + = help: replace `'b` with `'static` |
| 39 | + = help: replace `'c` with `'static` |
| 40 | + |
| 41 | +error: lifetime may not live long enough |
| 42 | + --> $DIR/normalization-3.rs:53:5 |
| 43 | + | |
| 44 | +LL | fn test_call<'a, 'b, 'c>() { |
| 45 | + | -- lifetime `'a` defined here |
| 46 | +LL | <Ty<'a>>::method::<Ty<'static>>(); |
| 47 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static` |
| 48 | + |
| 49 | +error: lifetime may not live long enough |
| 50 | + --> $DIR/normalization-3.rs:55:5 |
| 51 | + | |
| 52 | +LL | fn test_call<'a, 'b, 'c>() { |
| 53 | + | -- lifetime `'b` defined here |
| 54 | +... |
| 55 | +LL | <Ty<'static>>::method::<Ty<'b>>(); |
| 56 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'b` must outlive `'static` |
| 57 | + |
| 58 | +help: the following changes may resolve your lifetime errors |
| 59 | + | |
| 60 | + = help: replace `'a` with `'static` |
| 61 | + = help: replace `'b` with `'static` |
| 62 | + |
| 63 | +error: lifetime may not live long enough |
| 64 | + --> $DIR/normalization-3.rs:60:5 |
| 65 | + | |
| 66 | +LL | fn test_variants<'a, 'b, 'c>() { |
| 67 | + | -- lifetime `'a` defined here |
| 68 | +LL | <Ty<'a>>::Struct {}; |
| 69 | + | ^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static` |
| 70 | + |
| 71 | +error: lifetime may not live long enough |
| 72 | + --> $DIR/normalization-3.rs:62:5 |
| 73 | + | |
| 74 | +LL | fn test_variants<'a, 'b, 'c>() { |
| 75 | + | -- lifetime `'b` defined here |
| 76 | +... |
| 77 | +LL | <Ty<'b>>::Tuple(); |
| 78 | + | ^^^^^^^^^^^^^^^ requires that `'b` must outlive `'static` |
| 79 | + |
| 80 | +error: lifetime may not live long enough |
| 81 | + --> $DIR/normalization-3.rs:64:5 |
| 82 | + | |
| 83 | +LL | fn test_variants<'a, 'b, 'c>() { |
| 84 | + | -- lifetime `'c` defined here |
| 85 | +... |
| 86 | +LL | <Ty<'c>>::Unit; |
| 87 | + | ^^^^^^^^^^^^^^ requires that `'c` must outlive `'static` |
| 88 | + |
| 89 | +help: the following changes may resolve your lifetime errors |
| 90 | + | |
| 91 | + = help: replace `'a` with `'static` |
| 92 | + = help: replace `'b` with `'static` |
| 93 | + = help: replace `'c` with `'static` |
| 94 | + |
| 95 | +error: lifetime may not live long enough |
| 96 | + --> $DIR/normalization-3.rs:69:7 |
| 97 | + | |
| 98 | +LL | fn test_method_call<'a>(x: MyTy<()>) { |
| 99 | + | -- lifetime `'a` defined here |
| 100 | +LL | x.method2::<Ty<'a>>(); |
| 101 | + | ^^^^^^^ requires that `'a` must outlive `'static` |
| 102 | + |
| 103 | +error: lifetime may not live long enough |
| 104 | + --> $DIR/normalization-3.rs:86:5 |
| 105 | + | |
| 106 | +LL | fn test_struct_path<'a, 'b, 'c, 'd>() { |
| 107 | + | -- lifetime `'a` defined here |
| 108 | +... |
| 109 | +LL | MyTy::<Ty<'a>>::Struct {}; // without SelfTy |
| 110 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static` |
| 111 | + |
| 112 | +error: lifetime may not live long enough |
| 113 | + --> $DIR/normalization-3.rs:88:5 |
| 114 | + | |
| 115 | +LL | fn test_struct_path<'a, 'b, 'c, 'd>() { |
| 116 | + | -- lifetime `'b` defined here |
| 117 | +... |
| 118 | +LL | <Ty<'b> as Project>::Enum::Struct {}; // with SelfTy |
| 119 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'b` must outlive `'static` |
| 120 | + |
| 121 | +error: lifetime may not live long enough |
| 122 | + --> $DIR/normalization-3.rs:92:5 |
| 123 | + | |
| 124 | +LL | fn test_struct_path<'a, 'b, 'c, 'd>() { |
| 125 | + | -- lifetime `'c` defined here |
| 126 | +... |
| 127 | +LL | Struct::<Ty<'c>> { x: None, }; // without SelfTy |
| 128 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'c` must outlive `'static` |
| 129 | + |
| 130 | +error: lifetime may not live long enough |
| 131 | + --> $DIR/normalization-3.rs:94:5 |
| 132 | + | |
| 133 | +LL | fn test_struct_path<'a, 'b, 'c, 'd>() { |
| 134 | + | -- lifetime `'d` defined here |
| 135 | +... |
| 136 | +LL | <Ty<'d> as Project>::Struct { x: None, }; // with SelfTy |
| 137 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'d` must outlive `'static` |
| 138 | + |
| 139 | +help: the following changes may resolve your lifetime errors |
| 140 | + | |
| 141 | + = help: replace `'a` with `'static` |
| 142 | + = help: replace `'b` with `'static` |
| 143 | + = help: replace `'c` with `'static` |
| 144 | + = help: replace `'d` with `'static` |
| 145 | + |
| 146 | +error: lifetime may not live long enough |
| 147 | + --> $DIR/normalization-3.rs:101:9 |
| 148 | + | |
| 149 | +LL | fn test_pattern<'a, 'b, 'c>() { |
| 150 | + | -- lifetime `'a` defined here |
| 151 | +... |
| 152 | +LL | Struct::<Ty<'a>> {..} => {}, |
| 153 | + | ^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static` |
| 154 | + |
| 155 | +error: lifetime may not live long enough |
| 156 | + --> $DIR/normalization-3.rs:103:9 |
| 157 | + | |
| 158 | +LL | fn test_pattern<'a, 'b, 'c>() { |
| 159 | + | -- lifetime `'b` defined here |
| 160 | +... |
| 161 | +LL | Tuple::<Ty<'b>> (..) => {}, |
| 162 | + | ^^^^^^^^^^^^^^^^^^^^ requires that `'b` must outlive `'static` |
| 163 | + |
| 164 | +error: lifetime may not live long enough |
| 165 | + --> $DIR/normalization-3.rs:105:9 |
| 166 | + | |
| 167 | +LL | fn test_pattern<'a, 'b, 'c>() { |
| 168 | + | -- lifetime `'c` defined here |
| 169 | +... |
| 170 | +LL | Unit::<Ty<'c>> => {}, |
| 171 | + | ^^^^^^^^^^^^^^ requires that `'c` must outlive `'static` |
| 172 | + |
| 173 | +help: the following changes may resolve your lifetime errors |
| 174 | + | |
| 175 | + = help: replace `'a` with `'static` |
| 176 | + = help: replace `'b` with `'static` |
| 177 | + = help: replace `'c` with `'static` |
| 178 | + |
| 179 | +error: aborting due to 17 previous errors |
| 180 | + |
0 commit comments