Debian Codegraph @

gcc/testsuite/rust/execute/torture/issue-2052.rs

raw
1 #[lang = "sized"]
2 pub trait Sized {}
3
4 #[lang = "fn_once"]
5 pub trait FnOnce<Args> {
6 #[lang = "fn_once_output"]
7 type Output;
8
9 extern "rust-call" fn call_once(self, args: Args) -> Self::Output;
10 }
11
12 pub fn f() -> i32 {
13 (|| 42)()
14 }
15
16 pub fn main() -> i32 {
17 f() - 42
18 }