summaryrefslogtreecommitdiffstats
path: root/src/test/ui/regions/regions-name-duplicated.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/regions/regions-name-duplicated.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/regions/regions-name-duplicated.stderr b/src/test/ui/regions/regions-name-duplicated.stderr
new file mode 100644
index 000000000..cef73c18d
--- /dev/null
+++ b/src/test/ui/regions/regions-name-duplicated.stderr
@@ -0,0 +1,11 @@
+error[E0403]: the name `'a` is already used for a generic parameter in this item's generic parameters
+ --> $DIR/regions-name-duplicated.rs:1:16
+ |
+LL | struct Foo<'a, 'a> {
+ | -- ^^ already used
+ | |
+ | first use of `'a`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0403`.