Sign in
◑
Theme
gnu
/
gcc.git
/
refs/heads/trunk
/
.
/
gcc
/
testsuite
/
rust
/
compile
/
issues
/
2040.rs
blob: 4e1a50582ce10dca1016244afb2b8cd1663e4850 [
file
]
#![
feature
(
no_core
)]
#![
no_core
]
trait
Foo
{
fn
f
()
->
u32
;
}
impl
Foo
for
u32
{
const
fn
f
()
->
u32
{
// { dg-error "functions in traits cannot be declared .const." "" { target *-*-* } .-1 }
22
}
}
fn
main
()
{}