]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17758.rs
Enable full revision in const generics ui tests
[rust.git] / src / test / ui / issues / issue-17758.rs
1 // Test that regionck suggestions in a provided method of a trait
2 // don't ICE
3
4 trait Foo<'a> {
5     fn foo(&'a self);
6     fn bar(&self) {
7         self.foo();
8         //~^ ERROR cannot infer
9     }
10 }
11
12 fn main() {}