]> git.proxmox.com Git - rustc.git/blobdiff - vendor/pin-project-lite/tests/ui/pin_project/unsupported.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / vendor / pin-project-lite / tests / ui / pin_project / unsupported.rs
diff --git a/vendor/pin-project-lite/tests/ui/pin_project/unsupported.rs b/vendor/pin-project-lite/tests/ui/pin_project/unsupported.rs
new file mode 100644 (file)
index 0000000..2f80836
--- /dev/null
@@ -0,0 +1,27 @@
+use pin_project_lite::pin_project;
+
+pin_project! {
+    struct Struct1 {} //~ ERROR no rules expected the token `}`
+}
+
+pin_project! {
+    struct Struct2(); //~ ERROR no rules expected the token `(`
+}
+
+pin_project! {
+    struct Struct3; //~ ERROR no rules expected the token `;`
+}
+
+pin_project! {
+    enum Enum { //~ ERROR no rules expected the token `enum`
+        A(u8)
+    }
+}
+
+pin_project! {
+    union Union { //~ ERROR no rules expected the token `union`
+        x: u8,
+    }
+}
+
+fn main() {}