blob: 936c90e88aaeecdd4d75270ee0865e98c0cce5b7 [file]
#![feature(const_trait_impl)]
#![allow(incomplete_features)]
struct Foo;
const impl Foo { //~ ERROR: expected identifier, found keyword
fn bar() {}
}
fn main() {
// shouldn't error here because we shouldn't have been able to recover above
Foo::bar();
}