]> git.proxmox.com Git - rustc.git/blob - vendor/pin-project-lite/tests/ui/pin_project/conflict-unpin.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / vendor / pin-project-lite / tests / ui / pin_project / conflict-unpin.stderr
1 error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Foo<_, _>`:
2 --> $DIR/conflict-unpin.rs:5:1
3 |
4 5 | / pin_project! { //~ ERROR E0119
5 6 | | struct Foo<T, U> {
6 7 | | #[pin]
7 8 | | future: T,
8 9 | | field: U,
9 10 | | }
10 11 | | }
11 | |_^ conflicting implementation for `Foo<_, _>`
12 ...
13 14 | impl<T, U> Unpin for Foo<T, U> where T: Unpin {} // Conditional Unpin impl
14 | --------------------------------------------- first implementation here
15 |
16 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
17
18 error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Bar<_, _>`:
19 --> $DIR/conflict-unpin.rs:18:1
20 |
21 18 | / pin_project! { //~ ERROR E0119
22 19 | | struct Bar<T, U> {
23 20 | | #[pin]
24 21 | | future: T,
25 22 | | field: U,
26 23 | | }
27 24 | | }
28 | |_^ conflicting implementation for `Bar<_, _>`
29 ...
30 27 | impl<T, U> Unpin for Bar<T, U> {} // Non-conditional Unpin impl
31 | ------------------------------ first implementation here
32 |
33 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
34
35 error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Baz<_, _>`:
36 --> $DIR/conflict-unpin.rs:29:1
37 |
38 29 | / pin_project! { //~ ERROR E0119
39 30 | | struct Baz<T, U> {
40 31 | | #[pin]
41 32 | | future: T,
42 33 | | field: U,
43 34 | | }
44 35 | | }
45 | |_^ conflicting implementation for `Baz<_, _>`
46 ...
47 38 | impl<T: Unpin, U: Unpin> Unpin for Baz<T, U> {} // Conditional Unpin impl
48 | -------------------------------------------- first implementation here
49 |
50 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)