]> git.lizzy.rs Git - rust.git/blob - tests/incremental/issue-96319-coinductive-cycle.rs
Rollup merge of #107769 - compiler-errors:pointer-like, r=eholk
[rust.git] / tests / incremental / issue-96319-coinductive-cycle.rs
1 // edition:2018
2 // revisions: rpass1 rpass2
3
4 pub struct Stmt {
5     pub stmt_type: StmtKind,
6     #[cfg(rpass1)] pub stmt_tag: Option<LintTag>,
7     #[cfg(rpass2)] pub renamed_tag: Option<LintTag>,
8 }
9 pub struct LintTag;
10 pub enum StmtKind {
11     If(If),
12     Block(&'static str),
13     Return(Return),
14 }
15 pub struct If {
16     pub condition: Function,
17 }
18 pub struct Return {
19     pub value: Function,
20 }
21 pub struct Function {
22     pub parameters: Box<Stmt>,
23 }
24 pub fn start_late_pass(stmt_receiver: Box<Stmt>) {
25     spawn(async { stmt_receiver });
26 }
27
28 pub fn spawn<T>(_: T)
29 where
30     T: Send,
31 {
32 }
33
34 fn main() {}