2024-06-04 03:10:08 -05:00
|
|
|
//@ edition:2021
|
|
|
|
|
2024-10-04 09:10:28 -05:00
|
|
|
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() {}
|