blob: bed4e9fd1e610acf74fe18e2b6aefe0626104ecb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#![feature(const_trait_impl)]
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();
}
|