2 #![allow(non_camel_case_types)]
4 use std::string::String;
7 enum t { a, b(String), }
9 fn make(i: isize) -> t {
10 if i > 10 { return t::a; }
11 let mut s = String::from("hello");
12 // Ensure s is non-const.
22 // The auto slot for the result of make(i) should not leak.
23 while make(i) != t::a { i += 1; }