|
1 | 1 | error: suffixes on a tuple index are invalid
|
2 |
| - --> $DIR/issue-59418.rs:5:15 |
| 2 | + --> $DIR/tuple-index-suffix.rs:11:48 |
3 | 3 | |
|
4 |
| -LL | let b = a.1suffix; |
5 |
| - | ^^^^^^^ invalid suffix `suffix` |
| 4 | +LL | let invalid_tup_struct_suffix = tup_struct.0suffix; |
| 5 | + | ^^^^^^^ invalid suffix `suffix` |
| 6 | + |
| 7 | +warning: suffixes on a tuple index are invalid |
| 8 | + --> $DIR/tuple-index-suffix.rs:13:50 |
| 9 | + | |
| 10 | +LL | let carve_out_tup_struct_suffix = tup_struct.0i32; |
| 11 | + | ^^^^ invalid suffix `i32` |
| 12 | + | |
| 13 | + = help: `i32` is *temporarily* accepted on tuple index fields as it was incorrectly accepted on stable for a few releases |
| 14 | + = help: on proc macros, you'll want to use `syn::Index::from` or `proc_macro::Literal::*_unsuffixed` for code that will desugar to tuple field access |
| 15 | + = help: see issue #60210 <https://github.com/rust-lang/rust/issues/60210> for more information |
| 16 | + |
| 17 | +error: suffixes on a tuple index are invalid |
| 18 | + --> $DIR/tuple-index-suffix.rs:17:34 |
| 19 | + | |
| 20 | +LL | let invalid_tup_suffix = tup.0suffix; |
| 21 | + | ^^^^^^^ invalid suffix `suffix` |
| 22 | + |
| 23 | +warning: suffixes on a tuple index are invalid |
| 24 | + --> $DIR/tuple-index-suffix.rs:19:36 |
| 25 | + | |
| 26 | +LL | let carve_out_tup_suffix = tup.0u32; |
| 27 | + | ^^^^ invalid suffix `u32` |
| 28 | + | |
| 29 | + = help: `u32` is *temporarily* accepted on tuple index fields as it was incorrectly accepted on stable for a few releases |
| 30 | + = help: on proc macros, you'll want to use `syn::Index::from` or `proc_macro::Literal::*_unsuffixed` for code that will desugar to tuple field access |
| 31 | + = help: see issue #60210 <https://github.com/rust-lang/rust/issues/60210> for more information |
| 32 | + |
| 33 | +warning: suffixes on a tuple index are invalid |
| 34 | + --> $DIR/tuple-index-suffix.rs:31:31 |
| 35 | + | |
| 36 | +LL | let carve_out_i32 = (42,).0i32; |
| 37 | + | ^^^^ invalid suffix `i32` |
| 38 | + | |
| 39 | + = help: `i32` is *temporarily* accepted on tuple index fields as it was incorrectly accepted on stable for a few releases |
| 40 | + = help: on proc macros, you'll want to use `syn::Index::from` or `proc_macro::Literal::*_unsuffixed` for code that will desugar to tuple field access |
| 41 | + = help: see issue #60210 <https://github.com/rust-lang/rust/issues/60210> for more information |
| 42 | + |
| 43 | +warning: suffixes on a tuple index are invalid |
| 44 | + --> $DIR/tuple-index-suffix.rs:32:31 |
| 45 | + | |
| 46 | +LL | let carve_out_i32 = (42,).0u32; |
| 47 | + | ^^^^ invalid suffix `u32` |
| 48 | + | |
| 49 | + = help: `u32` is *temporarily* accepted on tuple index fields as it was incorrectly accepted on stable for a few releases |
| 50 | + = help: on proc macros, you'll want to use `syn::Index::from` or `proc_macro::Literal::*_unsuffixed` for code that will desugar to tuple field access |
| 51 | + = help: see issue #60210 <https://github.com/rust-lang/rust/issues/60210> for more information |
| 52 | + |
| 53 | +warning: suffixes on a tuple index are invalid |
| 54 | + --> $DIR/tuple-index-suffix.rs:33:33 |
| 55 | + | |
| 56 | +LL | let carve_out_isize = (42,).0isize; |
| 57 | + | ^^^^^^ invalid suffix `isize` |
| 58 | + | |
| 59 | + = help: `isize` is *temporarily* accepted on tuple index fields as it was incorrectly accepted on stable for a few releases |
| 60 | + = help: on proc macros, you'll want to use `syn::Index::from` or `proc_macro::Literal::*_unsuffixed` for code that will desugar to tuple field access |
| 61 | + = help: see issue #60210 <https://github.com/rust-lang/rust/issues/60210> for more information |
| 62 | + |
| 63 | +warning: suffixes on a tuple index are invalid |
| 64 | + --> $DIR/tuple-index-suffix.rs:34:33 |
| 65 | + | |
| 66 | +LL | let carve_out_usize = (42,).0usize; |
| 67 | + | ^^^^^^ invalid suffix `usize` |
| 68 | + | |
| 69 | + = help: `usize` is *temporarily* accepted on tuple index fields as it was incorrectly accepted on stable for a few releases |
| 70 | + = help: on proc macros, you'll want to use `syn::Index::from` or `proc_macro::Literal::*_unsuffixed` for code that will desugar to tuple field access |
| 71 | + = help: see issue #60210 <https://github.com/rust-lang/rust/issues/60210> for more information |
| 72 | + |
| 73 | +error: suffixes on a tuple index are invalid |
| 74 | + --> $DIR/tuple-index-suffix.rs:37:26 |
| 75 | + | |
| 76 | +LL | let error_i8 = (42,).0i8; |
| 77 | + | ^^^ invalid suffix `i8` |
| 78 | + |
| 79 | +error: suffixes on a tuple index are invalid |
| 80 | + --> $DIR/tuple-index-suffix.rs:38:26 |
| 81 | + | |
| 82 | +LL | let error_u8 = (42,).0u8; |
| 83 | + | ^^^ invalid suffix `u8` |
6 | 84 |
|
7 | 85 | error: suffixes on a tuple index are invalid
|
8 |
| - --> $DIR/issue-59418.rs:9:15 |
| 86 | + --> $DIR/tuple-index-suffix.rs:39:27 |
9 | 87 | |
|
10 |
| -LL | let d = c.1suffix; |
11 |
| - | ^^^^^^^ invalid suffix `suffix` |
| 88 | +LL | let error_i16 = (42,).0i16; |
| 89 | + | ^^^^ invalid suffix `i16` |
12 | 90 |
|
13 | 91 | error: suffixes on a tuple index are invalid
|
14 |
| - --> $DIR/issue-59418.rs:12:17 |
| 92 | + --> $DIR/tuple-index-suffix.rs:40:27 |
15 | 93 | |
|
16 |
| -LL | let s = X { 0suffix: 0, 1: 1, 2: 2 }; |
17 |
| - | ^^^^^^^ invalid suffix `suffix` |
| 94 | +LL | let error_u16 = (42,).0u16; |
| 95 | + | ^^^^ invalid suffix `u16` |
18 | 96 |
|
19 | 97 | error: suffixes on a tuple index are invalid
|
20 |
| - --> $DIR/issue-59418.rs:15:13 |
| 98 | + --> $DIR/tuple-index-suffix.rs:41:27 |
| 99 | + | |
| 100 | +LL | let error_i64 = (42,).0i64; |
| 101 | + | ^^^^ invalid suffix `i64` |
| 102 | + |
| 103 | +error: suffixes on a tuple index are invalid |
| 104 | + --> $DIR/tuple-index-suffix.rs:42:27 |
| 105 | + | |
| 106 | +LL | let error_u64 = (42,).0u64; |
| 107 | + | ^^^^ invalid suffix `u64` |
| 108 | + |
| 109 | +error: suffixes on a tuple index are invalid |
| 110 | + --> $DIR/tuple-index-suffix.rs:43:28 |
| 111 | + | |
| 112 | +LL | let error_i128 = (42,).0i128; |
| 113 | + | ^^^^^ invalid suffix `i128` |
| 114 | + |
| 115 | +error: suffixes on a tuple index are invalid |
| 116 | + --> $DIR/tuple-index-suffix.rs:44:28 |
| 117 | + | |
| 118 | +LL | let error_u128 = (42,).0u128; |
| 119 | + | ^^^^^ invalid suffix `u128` |
| 120 | + |
| 121 | +error: suffixes on a tuple index are invalid |
| 122 | + --> $DIR/tuple-index-suffix.rs:48:35 |
| 123 | + | |
| 124 | +LL | let invalid_struct_name = X { 0suffix: 0, 1: 1, 2: 2 }; |
| 125 | + | ^^^^^^^ invalid suffix `suffix` |
| 126 | + |
| 127 | +error: suffixes on a tuple index are invalid |
| 128 | + --> $DIR/tuple-index-suffix.rs:51:13 |
21 | 129 | |
|
22 | 130 | LL | X { 0suffix: _, .. } => {}
|
23 | 131 | | ^^^^^^^ invalid suffix `suffix`
|
24 | 132 |
|
25 |
| -error: aborting due to 4 previous errors |
| 133 | +warning: suffixes on a tuple index are invalid |
| 134 | + --> $DIR/tuple-index-suffix.rs:57:37 |
| 135 | + | |
| 136 | +LL | let carve_out_struct_name = X { 0u32: 0, 1: 1, 2: 2 }; |
| 137 | + | ^^^^ invalid suffix `u32` |
| 138 | + | |
| 139 | + = help: `u32` is *temporarily* accepted on tuple index fields as it was incorrectly accepted on stable for a few releases |
| 140 | + = help: on proc macros, you'll want to use `syn::Index::from` or `proc_macro::Literal::*_unsuffixed` for code that will desugar to tuple field access |
| 141 | + = help: see issue #60210 <https://github.com/rust-lang/rust/issues/60210> for more information |
| 142 | + |
| 143 | +warning: suffixes on a tuple index are invalid |
| 144 | + --> $DIR/tuple-index-suffix.rs:60:13 |
| 145 | + | |
| 146 | +LL | X { 0u32: _, .. } => {} |
| 147 | + | ^^^^ invalid suffix `u32` |
| 148 | + | |
| 149 | + = help: `u32` is *temporarily* accepted on tuple index fields as it was incorrectly accepted on stable for a few releases |
| 150 | + = help: on proc macros, you'll want to use `syn::Index::from` or `proc_macro::Literal::*_unsuffixed` for code that will desugar to tuple field access |
| 151 | + = help: see issue #60210 <https://github.com/rust-lang/rust/issues/60210> for more information |
| 152 | + |
| 153 | +warning: suffixes on a tuple index are invalid |
| 154 | + --> $DIR/tuple-index-suffix.rs:71:50 |
| 155 | + | |
| 156 | +LL | assert_eq!(std::mem::offset_of!(Struct<u32>, 0usize), 0); |
| 157 | + | ^^^^^^ invalid suffix `usize` |
| 158 | + | |
| 159 | + = help: `usize` is *temporarily* accepted on tuple index fields as it was incorrectly accepted on stable for a few releases |
| 160 | + = help: on proc macros, you'll want to use `syn::Index::from` or `proc_macro::Literal::*_unsuffixed` for code that will desugar to tuple field access |
| 161 | + = help: see issue #60210 <https://github.com/rust-lang/rust/issues/60210> for more information |
| 162 | + |
| 163 | +error: suffixes on a tuple index are invalid |
| 164 | + --> $DIR/tuple-index-suffix.rs:75:50 |
| 165 | + | |
| 166 | +LL | assert_eq!(std::mem::offset_of!(Struct<u32>, 0u8), 0); |
| 167 | + | ^^^ invalid suffix `u8` |
| 168 | + |
| 169 | +error: aborting due to 13 previous errors; 9 warnings emitted |
26 | 170 |
|
0 commit comments