Debian Codegraph @

third_party/rust/pin-project/tests/ui/unstable-features/negative_impls.stderr

raw
1 error: cross-crate traits with a default impl, like `Unpin`, should not be specialized
2 --> tests/ui/unstable-features/negative_impls.rs:17:1
3 |
4 17 | impl Unpin for Foo<MyPhantomPinned, ()> {}
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 |
7 = warning: this will change its meaning in a future release!
8 = note: for more information, see issue #93367 <https://github.com/rust-lang/rust/issues/93367>
9 = note: `MyPhantomPinned` is not a generic parameter
10 note: try using the same sequence of generic parameters as the struct definition
11 --> tests/ui/unstable-features/negative_impls.rs:8:1
12 |
13 8 | struct Foo<Pinned, Unpinned> {
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15 note: the lint level is defined here
16 --> tests/ui/unstable-features/negative_impls.rs:2:9
17 |
18 2 | #![deny(suspicious_auto_trait_impls)]
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^