mirror of
https://gitee.com/openharmony/third_party_rust_syn
synced 2024-11-23 16:00:10 +00:00
Add impl visibility test
This commit is contained in:
parent
408525db9b
commit
e19da82805
@ -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 { }`)");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user