]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/const-generics/min_const_generics/macro-fail.stderr
Auto merge of #104334 - compiler-errors:ufcs-sugg-wrong-def-id, r=estebank
[rust.git] / src / test / ui / const-generics / min_const_generics / macro-fail.stderr
index 2b75c19774842c410714d6ee14752aa0cf2023de..9f73b91aabebfbbe2ee843665c253b02400fdb6b 100644 (file)
@@ -53,6 +53,12 @@ LL |     macro_rules! gimme_a_const {
 ...
 LL |   let _fail = Example::<gimme_a_const!()>;
    |                         ^^^^^^^^^^^^^^^^ missing tokens in macro arguments
+   |
+note: while trying to match meta-variable `$rusty:ident`
+  --> $DIR/macro-fail.rs:28:8
+   |
+LL |       ($rusty: ident) => {{ let $rusty = 3; *&$rusty }}
+   |        ^^^^^^^^^^^^^
 
 error[E0747]: type provided when a constant was expected
   --> $DIR/macro-fail.rs:14:33