Sign in
chromium
/
external
/
github.com
/
rust-lang
/
rust
/
ab1f382ca8fa4a4c0dde58679207f9bec394fa0e
/
.
/
tests
/
ui
/
traits
/
const-traits
/
non-const-op-const-closure-non-const-outer.rs
blob: fa0f786964488e676ef224d964fcf5140c796832 [
file
] [
log
] [
blame
]
#![
feature
(
const_closures
,
const_trait_impl
)]
#![
allow
(
incomplete_features
)]
trait
Foo
{
fn
foo
(&
self
);
}
impl
Foo
for
()
{
fn
foo
(&
self
)
{}
}
fn
main
()
{
(
const
||
{
(()).
foo
()
})();
//~^ ERROR: cannot call non-const method
}