]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/issue-93078.rs
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[rust.git] / tests / ui / borrowck / issue-93078.rs
1 trait Modify {
2     fn modify(&mut self) ;
3 }
4
5 impl<T> Modify for T  {
6     fn modify(&mut self)  {}
7 }
8
9 trait Foo {
10     fn mute(&mut self) {
11         self.modify(); //~ ERROR cannot borrow `self` as mutable
12     }
13 }
14
15 fn main() {}