|  | 
|  | 1 | +error: `self` parameter is only allowed in associated functions | 
|  | 2 | +  --> $DIR/ice-predicates-of-no-entry-found-for-key-119275.rs:6:22 | 
|  | 3 | +   | | 
|  | 4 | +LL | fn bug<const N: Nat>(&self) | 
|  | 5 | +   |                      ^^^^^ not semantically valid as function parameter | 
|  | 6 | +   | | 
|  | 7 | +   = note: associated functions are those in `impl` or `trait` definitions | 
|  | 8 | + | 
|  | 9 | +error[E0412]: cannot find type `Nat` in this scope | 
|  | 10 | +  --> $DIR/ice-predicates-of-no-entry-found-for-key-119275.rs:6:17 | 
|  | 11 | +   | | 
|  | 12 | +LL | fn bug<const N: Nat>(&self) | 
|  | 13 | +   |                 ^^^ not found in this scope | 
|  | 14 | + | 
|  | 15 | +error[E0658]: only lifetime parameters can be used in this context | 
|  | 16 | +  --> $DIR/ice-predicates-of-no-entry-found-for-key-119275.rs:10:15 | 
|  | 17 | +   | | 
|  | 18 | +LL |     for<const N: usize = 3, T = u32> [(); COT::BYTES]:, | 
|  | 19 | +   |               ^             ^ | 
|  | 20 | +   | | 
|  | 21 | +   = note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information | 
|  | 22 | +   = help: add `#![feature(non_lifetime_binders)]` to the crate attributes to enable | 
|  | 23 | +   = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | 
|  | 24 | + | 
|  | 25 | +error: defaults for generic parameters are not allowed in `for<...>` binders | 
|  | 26 | +  --> $DIR/ice-predicates-of-no-entry-found-for-key-119275.rs:10:9 | 
|  | 27 | +   | | 
|  | 28 | +LL |     for<const N: usize = 3, T = u32> [(); COT::BYTES]:, | 
|  | 29 | +   |         ^^^^^^^^^^^^^^^^^^ | 
|  | 30 | + | 
|  | 31 | +error: defaults for generic parameters are not allowed in `for<...>` binders | 
|  | 32 | +  --> $DIR/ice-predicates-of-no-entry-found-for-key-119275.rs:10:29 | 
|  | 33 | +   | | 
|  | 34 | +LL |     for<const N: usize = 3, T = u32> [(); COT::BYTES]:, | 
|  | 35 | +   |                             ^^^^^^^ | 
|  | 36 | + | 
|  | 37 | +error[E0433]: failed to resolve: use of undeclared type `COT` | 
|  | 38 | +  --> $DIR/ice-predicates-of-no-entry-found-for-key-119275.rs:10:43 | 
|  | 39 | +   | | 
|  | 40 | +LL |     for<const N: usize = 3, T = u32> [(); COT::BYTES]:, | 
|  | 41 | +   |                                           ^^^ use of undeclared type `COT` | 
|  | 42 | + | 
|  | 43 | +error: aborting due to 6 previous errors | 
|  | 44 | + | 
|  | 45 | +Some errors have detailed explanations: E0412, E0433, E0658. | 
|  | 46 | +For more information about an error, try `rustc --explain E0412`. | 
0 commit comments