blob: 40896c32e1113a3e37c786d0706d5b286d2ef565 (
plain)
1
2
3
4
5
6
7
8
9
10
|
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() {}
|