File: bare-trait-object.stderr

package info (click to toggle)
rust-async-trait 0.1.83-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 348 kB
  • sloc: makefile: 2
file content (14 lines) | stat: -rw-r--r-- 487 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0782]: trait objects must include the `dyn` keyword
  --> tests/ui/bare-trait-object.rs:11:16
   |
11 | impl Trait for Send + Sync {
   |                ^^^^^^^^^^^
   |
help: add `dyn` keyword before this trait
   |
11 | impl Trait for dyn Send + Sync {
   |                +++
help: alternatively use a blanket implementation to implement `Trait` for all types that also implement `Send + Sync`
   |
11 | impl<T: Send + Sync> Trait for T {
   |     ++++++++++++++++           ~