2023-06-10 16:50:36 -05:00
|
|
|
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
|
2023-08-19 18:27:50 -05:00
|
|
|
//~| WARN `&` without an explicit lifetime name cannot be used here
|
|
|
|
//~| WARN this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
2023-06-10 16:50:36 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|