blob: 8c00f8834d6da01136af35154b69362c8b07c44c [file]
// { dg-additional-options "-frust-compile-until=typecheck" }
// TODO: this should typecheck
#![feature(no_core)]
#![no_core]
#![feature(lang_items)]
#[lang = "sized"]
trait Sized {}
#[lang = "fn_once"]
pub trait FnOnce<Args> {
/// The returned type after the call operator is used.
#[lang = "fn_once_output"]
type Output;
/// Performs the call operation.
extern "rust-call" fn call_once(self, args: Args) -> Self::Output;
}
pub fn foo() {
(|_a @ _b| {}) (1)
}