rust/tests/ui/const-generics/not_wf_param_in_rpitit.rs
2024-11-23 23:31:30 +00:00

9 lines
213 B
Rust

//@ edition:2021
trait Trait<const N: dyn Trait = bar> {
//~^ ERROR: cannot find value `bar` in this scope
//~| ERROR: cycle detected when computing type of `Trait::N`
async fn a() {}
}
fn main() {}