30 lines
995 B
Rust
30 lines
995 B
Rust
// expect: reject E5101 E5101 E5101 E5101
|
|
// phase: 6
|
|
// spec: docs/spec/08-verifier.md §7; docs/spec/15-source-language.md §10
|
|
module test.nominal_queries
|
|
// AIR twin: nominal_queries/diamond_21_u64.air
|
|
struct N0 { a: N1, b: N1 } // diagnostic here
|
|
struct N1 { a: N2, b: N2 } // diagnostic here
|
|
struct N2 { a: N3, b: N3 } // diagnostic here
|
|
struct N3 { a: N4, b: N4 } // diagnostic here
|
|
struct N4 { a: N5, b: N5 }
|
|
struct N5 { a: N6, b: N6 }
|
|
struct N6 { a: N7, b: N7 }
|
|
struct N7 { a: N8, b: N8 }
|
|
struct N8 { a: N9, b: N9 }
|
|
struct N9 { a: N10, b: N10 }
|
|
struct N10 { a: N11, b: N11 }
|
|
struct N11 { a: N12, b: N12 }
|
|
struct N12 { a: N13, b: N13 }
|
|
struct N13 { a: N14, b: N14 }
|
|
struct N14 { a: N15, b: N15 }
|
|
struct N15 { a: N16, b: N16 }
|
|
struct N16 { a: N17, b: N17 }
|
|
struct N17 { a: N18, b: N18 }
|
|
struct N18 { a: N19, b: N19 }
|
|
struct N19 { a: N20, b: N20 }
|
|
struct N20 { a: N21, b: N21 }
|
|
struct N21 { x: u64 }
|
|
fn echo(p: N0) -> N0 effects [] { return p; }
|
|
fn main() -> u64 effects [] { return 42; }
|