summaryrefslogtreecommitdiffstats
path: root/tests/ui/borrowck/issue-93078.rs
blob: 2e608c5db3e1d160c6548ce81bad3c92a1a91494 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
trait Modify {
    fn modify(&mut self) ;
}

impl<T> Modify for T  {
    fn modify(&mut self)  {}
}

trait Foo {
    fn mute(&mut self) {
        self.modify(); //~ ERROR cannot borrow `self` as mutable
    }
}

fn main() {}