Skip to content

Commit 8f91772

Browse files
committed
Test that Self works in filters
1 parent 91f3c34 commit 8f91772

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
//@ check-pass
2+
#![feature(rustc_attrs)]
3+
#![crate_type = "lib"]
4+
// Support `Self`, not just `_Self`
5+
#[rustc_on_unimplemented(on(Self = "u8"), message = "message")]
6+
pub trait Foo {}

0 commit comments

Comments
 (0)