about summary refs log tree commit diff
path: root/tests/ui/traits/const-traits/const-trait-impl-parameter-mismatch.stderr
blob: 736fde33ce3a3e46bfba9419e169a150b4347bfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
error[E0557]: feature has been removed
  --> $DIR/const-trait-impl-parameter-mismatch.rs:10:30
   |
LL | #![feature(const_trait_impl, effects)]
   |                              ^^^^^^^ feature has been removed
   |
   = note: removed in 1.84.0; see <https://github.com/rust-lang/rust/pull/132479> for more information
   = 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
  --> $DIR/const-trait-impl-parameter-mismatch.rs:19:16
   |
LL |     fn compute<T: [const] Aux>() -> u32;
   |                - 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`.