about summary refs log tree commit diff
path: root/tests/ui/error-codes/E0106.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/error-codes/E0106.rs')
-rw-r--r--tests/ui/error-codes/E0106.rs26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0106.rs b/tests/ui/error-codes/E0106.rs
new file mode 100644
index 00000000000..cc3438727a8
--- /dev/null
+++ b/tests/ui/error-codes/E0106.rs
@@ -0,0 +1,26 @@
+struct Foo {
+    x: &bool,
+    //~^ ERROR E0106
+}
+enum Bar {
+    A(u8),
+    B(&bool),
+   //~^ ERROR E0106
+}
+type MyStr = &str;
+        //~^ ERROR E0106
+
+struct Baz<'a>(&'a str);
+struct Buzz<'a, 'b>(&'a str, &'b str);
+
+struct Quux {
+    baz: Baz,
+    //~^ ERROR E0106
+    //~| expected named lifetime parameter
+    buzz: Buzz,
+    //~^ ERROR E0106
+    //~| expected 2 lifetime parameters
+}
+
+fn main() {
+}