-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cc2f5f9
commit 48d6f30
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
warning: expected a trait, found type | ||
--> $DIR/issue-46438.rs:13:14 | ||
| | ||
LL | impl $my_type for u8 {} //~ WARN expected a trait, found type | ||
| ^^^^^^^^ try using `path` instead of `ty` for this macro fragment | ||
... | ||
LL | m!(Tr); | ||
| ------- in this macro invocation | ||
| | ||
= note: this warning will become a hard error in a future release | ||
|
||
error: expected a trait, found type | ||
--> $DIR/issue-46438.rs:21:4 | ||
| | ||
LL | m!(&'static u8); //~ ERROR expected a trait, found type | ||
| ^^^^^^^^^^^ | ||
|
||
error: aborting due to previous error | ||
|