summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/next-solver/dont-type_of-tait-in-defining-scope.not_send.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/traits/next-solver/dont-type_of-tait-in-defining-scope.not_send.stderr')
-rw-r--r--tests/ui/traits/next-solver/dont-type_of-tait-in-defining-scope.not_send.stderr16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/traits/next-solver/dont-type_of-tait-in-defining-scope.not_send.stderr b/tests/ui/traits/next-solver/dont-type_of-tait-in-defining-scope.not_send.stderr
new file mode 100644
index 000000000..076dab29d
--- /dev/null
+++ b/tests/ui/traits/next-solver/dont-type_of-tait-in-defining-scope.not_send.stderr
@@ -0,0 +1,16 @@
+error[E0283]: type annotations needed: cannot satisfy `Foo: Send`
+ --> $DIR/dont-type_of-tait-in-defining-scope.rs:16:18
+ |
+LL | needs_send::<Foo>();
+ | ^^^
+ |
+ = note: cannot satisfy `Foo: Send`
+note: required by a bound in `needs_send`
+ --> $DIR/dont-type_of-tait-in-defining-scope.rs:13:18
+ |
+LL | fn needs_send<T: Send>() {}
+ | ^^^^ required by this bound in `needs_send`
+
+error: aborting due to 1 previous error
+
+For more information about this error, try `rustc --explain E0283`.