summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0185.stderr
blob: 0d24a3712d558e93491e160df4655bd24863032c (plain)
1
2
3
4
5
6
7
8
9
10
11
error[E0185]: method `foo` has a `&self` declaration in the impl, but not in the trait
  --> $DIR/E0185.rs:19:5
   |
12 |     fn foo();
   |     --------- trait method declared without `&self`
...
19 |     fn foo(&self) {}
   |     ^^^^^^^^^^^^^ `&self` used in impl

error: aborting due to previous error