2024-09-24 09:53:19 -05:00
|
|
|
error: `-Znext-solver=globally` and `generic_const_exprs` are incompatible, using them at the same time is not allowed
|
|
|
|
--> $DIR/issue-88119.rs:4:39
|
|
|
|
|
|
|
|
|
LL | #![feature(const_trait_impl, effects, generic_const_exprs)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: remove one of these features
|
|
|
|
|
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
|
|
|
|
2024-09-24 09:53:19 -05:00
|
|
|
error: aborting due to 3 previous errors
|
2024-06-30 12:08:45 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0284`.
|