mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-17 09:23:05 +00:00
![Barrett Ray](/assets/img/avatar_default.png)
avoid `{type error}` being leaked in user-facing messages, particularly when using the `adt_const_params` feature
14 lines
462 B
Rust
14 lines
462 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: trait objects must include the `dyn` keyword
|
|
async fn a() {}
|
|
}
|
|
|
|
fn main() {}
|