Skip to content

Commit

Permalink
Move the test to UI
Browse files Browse the repository at this point in the history
  • Loading branch information
petrochenkov committed Mar 8, 2018
1 parent cc2f5f9 commit 48d6f30
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
File renamed without changes.
19 changes: 19 additions & 0 deletions src/test/ui/issue-46438.stderr
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

0 comments on commit 48d6f30

Please sign in to comment.