2025-05-09 02:26:01 +09:00
|
|
|
error[E0557]: feature has been removed
|
2025-06-24 10:09:58 +08:00
|
|
|
--> $DIR/const-trait-impl-parameter-mismatch.rs:10:30
|
2025-05-09 02:26:01 +09:00
|
|
|
|
|
|
|
|
|
LL | #![feature(const_trait_impl, effects)]
|
|
|
|
|
| ^^^^^^^ feature has been removed
|
|
|
|
|
|
|
2025-06-24 10:09:58 +08:00
|
|
|
= note: removed in 1.84.0; see <https://github.com/rust-lang/rust/pull/132479> for more information
|
2025-05-09 02:26:01 +09:00
|
|
|
= note: removed, redundant with `#![feature(const_trait_impl)]`
|
|
|
|
|
|
|
|
|
|
error[E0049]: associated function `compute` has 0 type parameters but its trait declaration has 1 type parameter
|
2025-06-24 10:09:58 +08:00
|
|
|
--> $DIR/const-trait-impl-parameter-mismatch.rs:19:16
|
2025-05-09 02:26:01 +09:00
|
|
|
|
|
2025-03-11 12:08:45 +00:00
|
|
|
LL | fn compute<T: [const] Aux>() -> u32;
|
2025-05-09 02:26:01 +09:00
|
|
|
| - expected 1 type parameter
|
|
|
|
|
...
|
|
|
|
|
LL | fn compute<'x>() -> u32 {
|
|
|
|
|
| ^^ found 0 type parameters
|
|
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
|
|
Some errors have detailed explanations: E0049, E0557.
|
|
|
|
|
For more information about an error, try `rustc --explain E0049`.
|