mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
15 lines
571 B
Rust
15 lines
571 B
Rust
//@ edition:2021
|
|
|
|
trait Trait<const N: Trait = bar> {
|
|
//~^ 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
|
|
//~| ERROR: `(dyn Trait<{const error}> + 'static)` is forbidden as the type of a const generic parameter
|
|
//~| ERROR: trait objects must include the `dyn` keyword
|
|
async fn a() {}
|
|
}
|
|
|
|
fn main() {}
|