about summary refs log tree commit diff
path: root/tests/ui/resolve/false-self-in-macro-issue-143134.rs
blob: 0983b8b3dc3c4fc406cf68a8679b3bbf92827f58 (plain)
1
2
3
4
5
6
7
8
9
10
trait T {
    fn f(self);
  }
  impl T for () {
    fn f(self) {
        let self = (); //~ ERROR expected unit struct, unit variant or constant, found local variable `self`
    }
}

fn main() {}