mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
6c31f6ce12
``` error: `S2<'_>` is forbidden as the type of a const generic parameter --> $DIR/lifetime-in-const-param.rs:5:23 | LL | struct S<'a, const N: S2>(&'a ()); | ^^ | = note: the only supported types are integers, `bool` and `char` help: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types | LL + #![feature(adt_const_params)] | ``` Fix #55941. |
||
---|---|---|
.. | ||
associated-const-equality.rs | ||
basic.rs | ||
compare-impl-item.rs | ||
compare-impl-item.stderr | ||
const-trait-impl.rs | ||
duplicate-where-clause.rs | ||
duplicate-where-clause.stderr | ||
elided-lifetimes.rs | ||
elided-lifetimes.stderr | ||
evaluatable-bounds.rs | ||
evaluatable-bounds.unconstrained.stderr | ||
feature-gate-generic_const_items.rs | ||
feature-gate-generic_const_items.stderr | ||
inference-failure.rs | ||
inference-failure.stderr | ||
misplaced-where-clause.fixed | ||
misplaced-where-clause.rs | ||
misplaced-where-clause.stderr | ||
parameter-defaults.rs | ||
parameter-defaults.stderr | ||
recursive.rs | ||
reference-outlives-referent.rs | ||
reference-outlives-referent.stderr | ||
trivially-unsatisfied-bounds-0.rs | ||
trivially-unsatisfied-bounds-0.stderr | ||
trivially-unsatisfied-bounds-1.rs | ||
trivially-unsatisfied-bounds-1.stderr | ||
unsatisfied-bounds.rs | ||
unsatisfied-bounds.stderr | ||
unsatisfied-evaluatable-bounds.rs | ||
unsatisfied-evaluatable-bounds.stderr | ||
unsatisfied-outlives-bounds.rs | ||
unsatisfied-outlives-bounds.stderr |