@@ -6,30 +6,101 @@ LL | #![feature(const_trait_impl, generic_const_exprs)]
66 |
77 = help: remove one of these features
88
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
1022 --> $DIR/issue-88119.rs:21:5
1123 |
1224LL | [(); name_len::<T>()]:,
13- | ^^^^^^^^^^^^^^^^^^^^^ cannot satisfy `the constant `name_len::<T>()` can be evaluated`
25+ | ^^^^^^^^^^^^^^^^^^^^^
1426 |
1527note: 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
1634 --> $DIR/issue-88119.rs:21:10
1735 |
1836LL | [(); 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>`
2056
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
2258 --> $DIR/issue-88119.rs:28:5
2359 |
2460LL | [(); name_len::<T>()]:,
25- | ^^^^^^^^^^^^^^^^^^^^^ cannot satisfy `the constant `name_len::<T>()` can be evaluated`
61+ | ^^^^^^^^^^^^^^^^^^^^^
2662 |
2763note: 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
2870 --> $DIR/issue-88119.rs:28:10
2971 |
3072LL | [(); 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>`
32104
33- error: aborting due to 3 previous errors
105+ error: aborting due to 9 previous errors
34106
35- For more information about this error, try `rustc --explain E0284`.
0 commit comments