Skip to content

Commit 48d6f30

Browse files
committed
Move the test to UI
1 parent cc2f5f9 commit 48d6f30

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
File renamed without changes.

src/test/ui/issue-46438.stderr

+19
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)