aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/pin_project/conflict-drop.stderr
blob: 8c870d751aaf536eb392430273ab21b377bf36c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0119]: conflicting implementations of trait `MustNotImplDrop` for type `Foo<_, _>`
 --> tests/ui/pin_project/conflict-drop.rs:3:1
  |
3 | / pin_project! { //~ ERROR E0119
4 | |     struct Foo<T, U> {
5 | |         #[pin]
6 | |         future: T,
7 | |         field: U,
8 | |     }
9 | | }
  | | ^
  | | |
  | |_first implementation here
  |   conflicting implementation for `Foo<_, _>`
  |
  = note: this error originates in the macro `$crate::__pin_project_make_drop_impl` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)