diff options
Diffstat (limited to 'tests/ui/type-alias-impl-trait/no_inferrable_concrete_type.stderr')
-rw-r--r-- | tests/ui/type-alias-impl-trait/no_inferrable_concrete_type.stderr | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/type-alias-impl-trait/no_inferrable_concrete_type.stderr b/tests/ui/type-alias-impl-trait/no_inferrable_concrete_type.stderr new file mode 100644 index 000000000..f3e8ae9c7 --- /dev/null +++ b/tests/ui/type-alias-impl-trait/no_inferrable_concrete_type.stderr @@ -0,0 +1,10 @@ +error: unconstrained opaque type + --> $DIR/no_inferrable_concrete_type.rs:7:20 + | +LL | pub type Foo = impl Copy; + | ^^^^^^^^^ + | + = note: `Foo` must be used in combination with a concrete type within the same module + +error: aborting due to previous error + |