@@ -6,30 +6,101 @@ LL | #![feature(const_trait_impl, generic_const_exprs)]
6
6
|
7
7
= help: remove one of these features
8
8
9
- error[E0284]: type annotations needed: cannot satisfy `the constant `name_len::<T>()` can be evaluated`
9
+ error: the type `[(); name_len::<T>()]` is not well-formed
10
+ --> $DIR/issue-88119.rs:19:49
11
+ |
12
+ LL | impl<T: ?Sized + ConstName> const ConstName for &T
13
+ | ^^
14
+ |
15
+ note: required by a bound in `<&T as ConstName>`
16
+ --> $DIR/issue-88119.rs:21:5
17
+ |
18
+ LL | [(); name_len::<T>()]:,
19
+ | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `<&T as ConstName>`
20
+
21
+ error: the type `[(); name_len::<T>()]` is not well-formed
10
22
--> $DIR/issue-88119.rs:21:5
11
23
|
12
24
LL | [(); name_len::<T>()]:,
13
- | ^^^^^^^^^^^^^^^^^^^^^ cannot satisfy `the constant `name_len::<T>()` can be evaluated`
25
+ | ^^^^^^^^^^^^^^^^^^^^^
14
26
|
15
27
note: required by a bound in `<&T as ConstName>`
28
+ --> $DIR/issue-88119.rs:21:5
29
+ |
30
+ LL | [(); name_len::<T>()]:,
31
+ | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `<&T as ConstName>`
32
+
33
+ error: the type `[(); name_len::<T>()]` is not well-formed
16
34
--> $DIR/issue-88119.rs:21:10
17
35
|
18
36
LL | [(); name_len::<T>()]:,
19
- | ^^^^^^^^^^^^^^^ required by this bound in `<&T as ConstName>`
37
+ | ^^^^^^^^^^^^^^^
38
+ |
39
+ note: required by a bound in `<&T as ConstName>`
40
+ --> $DIR/issue-88119.rs:21:5
41
+ |
42
+ LL | [(); name_len::<T>()]:,
43
+ | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `<&T as ConstName>`
44
+
45
+ error: the type `[(); name_len::<T>()]` is not well-formed
46
+ --> $DIR/issue-88119.rs:26:49
47
+ |
48
+ LL | impl<T: ?Sized + ConstName> const ConstName for &mut T
49
+ | ^^^^^^
50
+ |
51
+ note: required by a bound in `<&mut T as ConstName>`
52
+ --> $DIR/issue-88119.rs:28:5
53
+ |
54
+ LL | [(); name_len::<T>()]:,
55
+ | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `<&mut T as ConstName>`
20
56
21
- error[E0284]: type annotations needed: cannot satisfy ` the constant ` name_len::<T>()` can be evaluated`
57
+ error: the type `[(); name_len::<T>()]` is not well-formed
22
58
--> $DIR/issue-88119.rs:28:5
23
59
|
24
60
LL | [(); name_len::<T>()]:,
25
- | ^^^^^^^^^^^^^^^^^^^^^ cannot satisfy `the constant `name_len::<T>()` can be evaluated`
61
+ | ^^^^^^^^^^^^^^^^^^^^^
26
62
|
27
63
note: required by a bound in `<&mut T as ConstName>`
64
+ --> $DIR/issue-88119.rs:28:5
65
+ |
66
+ LL | [(); name_len::<T>()]:,
67
+ | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `<&mut T as ConstName>`
68
+
69
+ error: the type `[(); name_len::<T>()]` is not well-formed
28
70
--> $DIR/issue-88119.rs:28:10
29
71
|
30
72
LL | [(); name_len::<T>()]:,
31
- | ^^^^^^^^^^^^^^^ required by this bound in `<&mut T as ConstName>`
73
+ | ^^^^^^^^^^^^^^^
74
+ |
75
+ note: required by a bound in `<&mut T as ConstName>`
76
+ --> $DIR/issue-88119.rs:28:5
77
+ |
78
+ LL | [(); name_len::<T>()]:,
79
+ | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `<&mut T as ConstName>`
80
+
81
+ error: the type `[(); name_len::<T>()]` is not well-formed
82
+ --> $DIR/issue-88119.rs:33:34
83
+ |
84
+ LL | pub const ICE_1: &'static [u8] = <&&mut u8 as ConstName>::NAME_BYTES;
85
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
86
+ |
87
+ note: required by a bound in `<&mut T as ConstName>`
88
+ --> $DIR/issue-88119.rs:28:5
89
+ |
90
+ LL | [(); name_len::<T>()]:,
91
+ | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `<&mut T as ConstName>`
92
+
93
+ error: the type `[(); name_len::<T>()]` is not well-formed
94
+ --> $DIR/issue-88119.rs:34:34
95
+ |
96
+ LL | pub const ICE_2: &'static [u8] = <&mut &u8 as ConstName>::NAME_BYTES;
97
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
98
+ |
99
+ note: required by a bound in `<&T as ConstName>`
100
+ --> $DIR/issue-88119.rs:21:5
101
+ |
102
+ LL | [(); name_len::<T>()]:,
103
+ | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `<&T as ConstName>`
32
104
33
- error: aborting due to 3 previous errors
105
+ error: aborting due to 9 previous errors
34
106
35
- For more information about this error, try `rustc --explain E0284`.
0 commit comments