about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorJonathan Turner <jturner@mozilla.com>2017-01-06 10:05:55 +1100
committerJonathan Turner <jturner@mozilla.com>2017-01-06 10:05:55 +1100
commit069aa30445f52e111f888e1592e8a1d449c877d4 (patch)
treecd390d237d48210efc3e198fca0d43069f337117 /src/test
parent5ead9731737ecfbd19a80d9aac2d34d0ac95711c (diff)
downloadrust-069aa30445f52e111f888e1592e8a1d449c877d4.tar.gz
rust-069aa30445f52e111f888e1592e8a1d449c877d4.zip
Add in test for E0090
Diffstat (limited to 'src/test')
-rw-r--r--src/test/compile-fail/E0090.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/compile-fail/E0090.rs b/src/test/compile-fail/E0090.rs
new file mode 100644
index 00000000000..4656f527f1f
--- /dev/null
+++ b/src/test/compile-fail/E0090.rs
@@ -0,0 +1,5 @@
+fn foo<'a: 'b, 'b: 'a>() {}
+fn main() {
+    foo::<'static>();//~ ERROR E0090
+                     //~^ too few lifetime parameters
+}