Files
aji/tests/conformance/source/generics/composed_identity_growth_63.aji
T

9 lines
667 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]; 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]; 1]>(); }
fn main() -> void effects [] { grow::<u8>(); }