We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc2f5f9 commit 48d6f30Copy full SHA for 48d6f30
src/test/compile-fail/issue-46438.rs renamed to src/test/ui/issue-46438.rs
src/test/ui/issue-46438.stderr
@@ -0,0 +1,19 @@
1
+warning: expected a trait, found type
2
+ --> $DIR/issue-46438.rs:13:14
3
+ |
4
+LL | impl $my_type for u8 {} //~ WARN expected a trait, found type
5
+ | ^^^^^^^^ try using `path` instead of `ty` for this macro fragment
6
+...
7
+LL | m!(Tr);
8
+ | ------- in this macro invocation
9
10
+ = note: this warning will become a hard error in a future release
11
+
12
+error: expected a trait, found type
13
+ --> $DIR/issue-46438.rs:21:4
14
15
+LL | m!(&'static u8); //~ ERROR expected a trait, found type
16
+ | ^^^^^^^^^^^
17
18
+error: aborting due to previous error
19
0 commit comments