]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2632-const-trait-impl/const-impl-norecover.rs
Rollup merge of #104182 - gabhijit:ipv6-in6addr-any-doc-fix, r=m-ou-se
[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 }