2024-07-16 21:07:36 -05:00
|
|
|
error[E0284]: type annotations needed: cannot normalize `<&T as ConstName>::{constant#0}`
|
|
|
|
--> $DIR/issue-88119.rs:19:49
|
2024-06-30 12:08:45 -05:00
|
|
|
|
|
2024-07-16 21:07:36 -05:00
|
|
|
LL | impl<T: ?Sized + ConstName> const ConstName for &T
|
|
|
|
| ^^ cannot normalize `<&T as ConstName>::{constant#0}`
|
2024-06-30 12:08:45 -05:00
|
|
|
|
|
2024-07-16 21:07:36 -05:00
|
|
|
note: required for `&T` to implement `ConstName`
|
|
|
|
--> $DIR/issue-88119.rs:19:35
|
2024-06-30 12:08:45 -05:00
|
|
|
|
|
2024-07-16 21:07:36 -05:00
|
|
|
LL | impl<T: ?Sized + ConstName> const ConstName for &T
|
|
|
|
| ^^^^^^^^^ ^^
|
|
|
|
LL | where
|
2024-06-30 12:08:45 -05:00
|
|
|
LL | [(); name_len::<T>()]:,
|
2024-07-16 21:07:36 -05:00
|
|
|
| --------------------- unsatisfied trait bound introduced here
|
2024-06-30 12:08:45 -05:00
|
|
|
|
2024-07-16 21:07:36 -05:00
|
|
|
error[E0284]: type annotations needed: cannot normalize `<&mut T as ConstName>::{constant#0}`
|
|
|
|
--> $DIR/issue-88119.rs:26:49
|
2024-06-30 12:08:45 -05:00
|
|
|
|
|
2024-07-16 21:07:36 -05:00
|
|
|
LL | impl<T: ?Sized + ConstName> const ConstName for &mut T
|
|
|
|
| ^^^^^^ cannot normalize `<&mut T as ConstName>::{constant#0}`
|
2024-06-30 12:08:45 -05:00
|
|
|
|
|
2024-07-16 21:07:36 -05:00
|
|
|
note: required for `&mut T` to implement `ConstName`
|
|
|
|
--> $DIR/issue-88119.rs:26:35
|
2024-06-30 12:08:45 -05:00
|
|
|
|
|
2024-07-16 21:07:36 -05:00
|
|
|
LL | impl<T: ?Sized + ConstName> const ConstName for &mut T
|
|
|
|
| ^^^^^^^^^ ^^^^^^
|
|
|
|
LL | where
|
2024-06-30 12:08:45 -05:00
|
|
|
LL | [(); name_len::<T>()]:,
|
2024-07-16 21:07:36 -05:00
|
|
|
| --------------------- unsatisfied trait bound introduced here
|
2024-06-30 12:08:45 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0284`.
|