Add impl visibility test

This commit is contained in:
David Tolnay 2021-04-26 22:21:58 -07:00
parent 408525db9b
commit e19da82805
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -266,3 +266,12 @@ fn test_type_empty_bounds() {
}
"###);
}
#[test]
fn test_impl_visibility() {
let tokens = quote! {
pub default unsafe impl union {}
};
snapshot!(tokens as Item, @"Verbatim(`pub default unsafe impl union { }`)");
}