about summary refs log tree commit diff
path: root/src/test/ui/methods
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-02-10 17:37:12 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2020-03-10 07:26:27 +0100
commitcf2d4236eb311b80407678b0527b810ecdd335b7 (patch)
treef1c4be6b5b5f1907d65b887201f5ab97cda1288e /src/test/ui/methods
parentb3bc4272287f1d245236d92fe1ab3c1f41e967de (diff)
downloadrust-cf2d4236eb311b80407678b0527b810ecdd335b7.tar.gz
rust-cf2d4236eb311b80407678b0527b810ecdd335b7.zip
--bless some tests
Diffstat (limited to 'src/test/ui/methods')
-rw-r--r--src/test/ui/methods/method-on-ambiguous-numeric-type.stderr7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/ui/methods/method-on-ambiguous-numeric-type.stderr b/src/test/ui/methods/method-on-ambiguous-numeric-type.stderr
index 10950834ad3..c6dde67cfeb 100644
--- a/src/test/ui/methods/method-on-ambiguous-numeric-type.stderr
+++ b/src/test/ui/methods/method-on-ambiguous-numeric-type.stderr
@@ -42,10 +42,13 @@ LL |     ($ident:ident) => { let $ident: i32 = 42; }
 error[E0689]: can't call method `pow` on ambiguous numeric type `{integer}`
   --> $DIR/method-on-ambiguous-numeric-type.rs:30:9
    |
-LL |     mac!(bar);
-   |     ---------- you must specify a type for this binding, like `i32`
 LL |     bar.pow(2);
    |         ^^^
+   |
+help: you must specify a type for this binding, like `i32`
+   |
+LL |     ($ident:ident) => { let $ident: i32 = 42; }
+   |                             ^^^^^^^^^^^
 
 error: aborting due to 5 previous errors