diff options
Diffstat (limited to 'tests/ui/error-codes/E0185.stderr')
-rw-r--r-- | tests/ui/error-codes/E0185.stderr | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0185.stderr b/tests/ui/error-codes/E0185.stderr new file mode 100644 index 000000000..8a99c0688 --- /dev/null +++ b/tests/ui/error-codes/E0185.stderr @@ -0,0 +1,12 @@ +error[E0185]: method `foo` has a `&self` declaration in the impl, but not in the trait + --> $DIR/E0185.rs:9:5 + | +LL | fn foo(); + | --------- trait method declared without `&self` +... +LL | fn foo(&self) {} + | ^^^^^^^^^^^^^ `&self` used in impl + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0185`. |