]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17758.rs
Merge commit '97e504549371d7640cf011d266e3c17394fdddac' into sync_cg_clif-2021-12-20
[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() {}