mirror of
https://gitee.com/openharmony/third_party_rust_syn
synced 2024-11-27 18:01:03 +00:00
Add test of trailing plus on bare (non-dyn) trait object
Currently fails with: thread 'test_trailing_plus' panicked at 'called `Result::unwrap()` on an `Err` value: Error("unexpected end of input, expected identifier")', tests/test_ty.rs:334:5
This commit is contained in:
parent
97598d1e73
commit
1e79cc1d33
@ -328,4 +328,24 @@ fn test_trailing_plus() {
|
||||
],
|
||||
}
|
||||
"###);
|
||||
|
||||
#[rustfmt::skip]
|
||||
let tokens = quote!(Trait +);
|
||||
snapshot!(tokens as Type, @r###"
|
||||
Type::TraitObject {
|
||||
bounds: [
|
||||
Trait(TraitBound {
|
||||
modifier: None,
|
||||
path: Path {
|
||||
segments: [
|
||||
PathSegment {
|
||||
ident: "Trait",
|
||||
arguments: None,
|
||||
},
|
||||
],
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
"###);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user