]> git.proxmox.com Git - rustc.git/blob - vendor/pin-project-lite/tests/ui/pin_project/unsupported.rs
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / vendor / pin-project-lite / tests / ui / pin_project / unsupported.rs
1 use pin_project_lite::pin_project;
2
3 pin_project! {
4 struct Struct1 {} //~ ERROR no rules expected the token `}`
5 }
6
7 pin_project! {
8 struct Struct2(); //~ ERROR no rules expected the token `(`
9 }
10
11 pin_project! {
12 struct Struct3; //~ ERROR no rules expected the token `;`
13 }
14
15 pin_project! {
16 enum Enum { //~ ERROR no rules expected the token `enum`
17 A(u8)
18 }
19 }
20
21 pin_project! {
22 union Union { //~ ERROR no rules expected the token `union`
23 x: u8,
24 }
25 }
26
27 fn main() {}