mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-30 03:57:37 +00:00
13 lines
239 B
Rust
13 lines
239 B
Rust
![]() |
#![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();
|
||
|
}
|