2024-09-24 10:53:19 -04:00
|
|
|
error: `-Znext-solver=globally` and `generic_const_exprs` are incompatible, using them at the same time is not allowed
|
2024-10-30 18:03:44 +00:00
|
|
|
--> $DIR/issue-88119.rs:4:30
|
2024-09-24 10:53:19 -04:00
|
|
|
|
|
2024-10-30 18:03:44 +00:00
|
|
|
LL | #![feature(const_trait_impl, generic_const_exprs)]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2024-09-24 10:53:19 -04:00
|
|
|
|
|
|
|
|
|
= help: remove one of these features
|
|
|
|
|
|
2025-02-21 10:11:56 +01:00
|
|
|
error[E0275]: overflow evaluating the requirement `&T: ~const ConstName`
|
|
|
|
|
--> $DIR/issue-88119.rs:19:49
|
|
|
|
|
|
|
|
|
|
|
LL | impl<T: ?Sized + ConstName> const ConstName for &T
|
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
|
error[E0275]: overflow evaluating the requirement `&T: ConstName`
|
|
|
|
|
--> $DIR/issue-88119.rs:19:49
|
|
|
|
|
|
|
|
|
|
|
LL | impl<T: ?Sized + ConstName> const ConstName for &T
|
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
|
error[E0275]: overflow evaluating the requirement `[(); name_len::<T>()] well-formed`
|
2025-01-22 20:13:36 +00:00
|
|
|
--> $DIR/issue-88119.rs:21:5
|
2024-06-30 17:08:45 +00:00
|
|
|
|
|
2025-01-22 20:13:36 +00:00
|
|
|
LL | [(); name_len::<T>()]:,
|
2025-02-21 10:11:56 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2024-12-10 22:08:44 +00:00
|
|
|
|
|
2025-01-22 20:13:36 +00:00
|
|
|
note: required by a bound in `<&T as ConstName>`
|
2025-02-21 10:11:56 +01:00
|
|
|
--> $DIR/issue-88119.rs:21:5
|
|
|
|
|
|
|
|
|
|
|
LL | [(); name_len::<T>()]:,
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `<&T as ConstName>`
|
|
|
|
|
|
|
|
|
|
error[E0275]: overflow evaluating the requirement `[(); name_len::<T>()] well-formed`
|
2025-01-22 20:13:36 +00:00
|
|
|
--> $DIR/issue-88119.rs:21:10
|
2024-12-10 22:08:44 +00:00
|
|
|
|
|
|
|
|
|
LL | [(); name_len::<T>()]:,
|
2025-02-21 10:11:56 +01:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
note: required by a bound in `<&T as ConstName>`
|
|
|
|
|
--> $DIR/issue-88119.rs:21:5
|
|
|
|
|
|
|
|
|
|
|
LL | [(); name_len::<T>()]:,
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `<&T as ConstName>`
|
|
|
|
|
|
|
|
|
|
error[E0275]: overflow evaluating the requirement `&mut T: ~const ConstName`
|
|
|
|
|
--> $DIR/issue-88119.rs:26:49
|
|
|
|
|
|
|
|
|
|
|
LL | impl<T: ?Sized + ConstName> const ConstName for &mut T
|
|
|
|
|
| ^^^^^^
|
2024-06-30 17:08:45 +00:00
|
|
|
|
2025-02-21 10:11:56 +01:00
|
|
|
error[E0275]: overflow evaluating the requirement `&mut T: ConstName`
|
|
|
|
|
--> $DIR/issue-88119.rs:26:49
|
|
|
|
|
|
|
|
|
|
|
LL | impl<T: ?Sized + ConstName> const ConstName for &mut T
|
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
|
error[E0275]: overflow evaluating the requirement `[(); name_len::<T>()] well-formed`
|
2025-01-22 20:13:36 +00:00
|
|
|
--> $DIR/issue-88119.rs:28:5
|
2024-06-30 17:08:45 +00:00
|
|
|
|
|
2025-01-22 20:13:36 +00:00
|
|
|
LL | [(); name_len::<T>()]:,
|
2025-02-21 10:11:56 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2024-12-10 22:08:44 +00:00
|
|
|
|
|
2025-01-22 20:13:36 +00:00
|
|
|
note: required by a bound in `<&mut T as ConstName>`
|
2025-02-21 10:11:56 +01:00
|
|
|
--> $DIR/issue-88119.rs:28:5
|
|
|
|
|
|
|
|
|
|
|
LL | [(); name_len::<T>()]:,
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `<&mut T as ConstName>`
|
|
|
|
|
|
|
|
|
|
error[E0275]: overflow evaluating the requirement `[(); name_len::<T>()] well-formed`
|
2025-01-22 20:13:36 +00:00
|
|
|
--> $DIR/issue-88119.rs:28:10
|
2024-12-10 22:08:44 +00:00
|
|
|
|
|
|
|
|
|
LL | [(); name_len::<T>()]:,
|
2025-02-21 10:11:56 +01:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
note: required by a bound in `<&mut T as ConstName>`
|
|
|
|
|
--> $DIR/issue-88119.rs:28:5
|
|
|
|
|
|
|
|
|
|
|
LL | [(); name_len::<T>()]:,
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `<&mut T as ConstName>`
|
|
|
|
|
|
|
|
|
|
error[E0275]: overflow evaluating the requirement `&&mut u8: ConstName`
|
|
|
|
|
--> $DIR/issue-88119.rs:33:35
|
|
|
|
|
|
|
|
|
|
|
LL | pub const ICE_1: &'static [u8] = <&&mut u8 as ConstName>::NAME_BYTES;
|
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
|
error[E0275]: overflow evaluating the requirement `&mut &u8: ConstName`
|
|
|
|
|
--> $DIR/issue-88119.rs:34:35
|
|
|
|
|
|
|
|
|
|
|
LL | pub const ICE_2: &'static [u8] = <&mut &u8 as ConstName>::NAME_BYTES;
|
|
|
|
|
| ^^^^^^^^
|
2024-06-30 17:08:45 +00:00
|
|
|
|
2025-02-21 10:11:56 +01:00
|
|
|
error: aborting due to 11 previous errors
|
2024-06-30 17:08:45 +00:00
|
|
|
|
2025-02-21 10:11:56 +01:00
|
|
|
For more information about this error, try `rustc --explain E0275`.
|