]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-8727.rs
1 // Verify the compiler fails with an error on infinite function
5 // normalize-stderr-test: ".nll/" -> "/"
7 fn generic
<T
>() { //~ WARN function cannot return without recursing
8 generic
::<Option
<T
>>();
10 //~^^ ERROR reached the recursion limit while instantiating `generic::<Option<
14 // Use generic<T> at least once to trigger instantiation.