mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
11 lines
218 B
Rust
11 lines
218 B
Rust
trait Trait {
|
|
const ASSOC: i32;
|
|
}
|
|
|
|
impl Trait for () {
|
|
const ASSOC: &dyn Fn(_) = 1i32;
|
|
//~^ ERROR the placeholder `_` is not allowed within types on item signatures for associated constants
|
|
}
|
|
|
|
fn main() {}
|