]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2632-const-trait-impl/const-impl-norecover.rs
Auto merge of #106371 - RalfJung:no-ret-position-noalias, r=nikic
[rust.git] / src / test / 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 }