rust/tests/ui/const-generics/not_wf_param_in_rpitit.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
405 B
Rust
Raw Permalink Normal View History

2024-06-04 03:10:08 -05:00
//@ edition:2021
trait Trait<const N: dyn Trait = bar> {
2024-06-04 03:10:08 -05:00
//~^ ERROR: cannot find value `bar` in this scope
//~| ERROR: cycle detected when computing type of `Trait::N`
//~| ERROR: the trait `Trait` cannot be made into an object
//~| ERROR: the trait `Trait` cannot be made into an object
//~| ERROR: the trait `Trait` cannot be made into an object
async fn a() {}
}
fn main() {}