Sign in
android
/
toolchain
/
rustc
/
5c0824a599f2f1f4dcb9c92edf09f6c1b555988d
/
.
/
tests
/
ui
/
rfc-2632-const-trait-impl
/
const-impl-norecover.rs
blob: bed4e9fd1e610acf74fe18e2b6aefe0626104ecb [
file
] [
log
] [
blame
]
#![
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
();
}