blob: 50d1f166c98650a09b562e5c47b0e3975dfc3406 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// build-fail
// normalize-stderr-test: ".nll/" -> "/"
trait Mirror {
type Image;
}
impl<T> Mirror for T { type Image = T; }
trait Foo {
fn recurse(&self);
}
impl<T> Foo for T {
#[allow(unconditional_recursion)]
fn recurse(&self) {
(self, self).recurse(); //~ ERROR reached the recursion limit
}
}
fn main() {
().recurse();
}
|