9 lines
507 B
Rust
9 lines
507 B
Rust
// expect: reject E7006
|
|
// phase: 6
|
|
// spec: docs/spec/15-source-language.md §15.3
|
|
// Substitution composes argument depth across active specializations.
|
|
// The fixed expansion guard must reject before native stack exhaustion.
|
|
module test.composed_growth
|
|
fn grow<T>() -> void effects [] { grow::<[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[T; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]; 1]>(); }
|
|
fn main() -> void effects [] { grow::<u8>(); }
|