]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2632-const-trait-impl/const-impl-norecover.rs
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
[rust.git] / tests / ui / rfc-2632-const-trait-impl / const-impl-norecover.rs
1 #![feature(const_trait_impl)]
2
3 struct Foo;
4
5 const impl Foo { //~ ERROR: expected identifier, found keyword
6     fn bar() {}
7 }
8
9 fn main() {
10      // shouldn't error here because we shouldn't have been able to recover above
11      Foo::bar();
12 }