2 // normalize-stderr-test: ".nll/" -> "/"
5 fn to_option(&self) -> Option<Self>;
9 fn to_option(&self) -> Option<usize> {
14 impl<T:Clone> ToOpt for Option<T> {
15 fn to_option(&self) -> Option<Option<T>> {
20 fn function<T:ToOpt + Clone>(counter: usize, t: T) {
22 function(counter - 1, t.to_option());
23 //~^ ERROR reached the recursion limit while instantiating `function::<Option<