Sign in
chromium
/
external
/
github.com
/
rust-lang
/
rust
/
16040a16285e3bfde82c3e4216d16a6e566494da
/
.
/
tests
/
ui
/
rfcs
/
rfc-2632-const-trait-impl
/
const-check-fns-in-const-impl.rs
blob: 4854f41bf04f4eee0505f61d80cfa1f7c6f92e7c [
file
] [
log
] [
blame
]
#![
feature
(
const_trait_impl
,
effects
)]
struct
S
;
#[
const_trait
]
trait
T
{
fn
foo
();
}
fn
non_const
()
{}
impl
const
T
for
S
{
fn
foo
()
{
non_const
()
}
//~^ ERROR cannot call non-const fn
}
fn
main
()
{}