diff options
Diffstat (limited to 'tests/ui/variance/variance-associated-types.stderr')
-rw-r--r-- | tests/ui/variance/variance-associated-types.stderr | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/variance/variance-associated-types.stderr b/tests/ui/variance/variance-associated-types.stderr new file mode 100644 index 000000000..51f17c7c2 --- /dev/null +++ b/tests/ui/variance/variance-associated-types.stderr @@ -0,0 +1,14 @@ +error: [-, +] + --> $DIR/variance-associated-types.rs:13:1 + | +LL | struct Foo<'a, T : Trait<'a>> { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +error: [o, o] + --> $DIR/variance-associated-types.rs:18:1 + | +LL | struct Bar<'a, T : Trait<'a>> { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +error: aborting due to 2 previous errors + |