Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

crate: traitobject v0.1.0 #1

Open
tornadochen opened this issue Dec 28, 2022 · 0 comments
Open

crate: traitobject v0.1.0 #1

tornadochen opened this issue Dec 28, 2022 · 0 comments

Comments

@tornadochen
Copy link

I cargo build on V1.66 and get a warning
: conflicting implementations of trait Trait for type (dyn std::marker::Send + std::marker::Sync + 'static): (E0119)

--> /home/tornado/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/traitobject-0.1.0/src/impls.rs:75:1
|
73 | unsafe impl Trait for ::std::marker::Sync + Send { }
| ------------------------------------------------ first implementation here
74 | unsafe impl Trait for ::std::marker::Sync + Sync { }
75 | unsafe impl Trait for ::std::marker::Sync + Send + Sync { }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for (dyn std::marker::Send + std::marker::Sync + 'static)
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #56484 rust-lang/rust#56484
= note: #[allow(order_dependent_trait_objects)] on by default

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant