Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trait bounds other than Sized on const fn parameters are unstable #807

Closed
PhillyWebGuy opened this issue Mar 21, 2022 · 2 comments
Closed

Comments

@PhillyWebGuy
Copy link

This package is evidently a dependency of dependency for a repo I am working in. I just ran cargo update, went to compile, and now my code won't compile. I'm pretty new to Rust so I'm sort of at a loss as to what to do right now, particularly since this crate isn't even a dependency listed in any Cargo.toml file, thus I assume it is a dependency of a dependency.

error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
   --> /Users/klptechco/.cargo/registry/src/github.com-1ecc6299db9ec823/crossbeam-epoch-0.9.8/src/atomic.rs:314:6
    |
314 | impl<T: ?Sized + Pointable> Atomic<T> {
    |      ^
...
346 |     pub const fn null() -> Atomic<T> {
    |     -------------------------------- function declared as const here
    |
    = note: see issue #93706 <https://github.com/rust-lang/rust/issues/93706> for more information
    = help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable

For more information about this error, try `rustc --explain E0658`.
error: could not compile `crossbeam-epoch` due to previous error

@cynecx
Copy link
Contributor

cynecx commented Mar 21, 2022

Duplicate of #803.

@PhillyWebGuy
Copy link
Author

@cynecx Thanks for the quick reply!

@PhillyWebGuy PhillyWebGuy changed the title This won't compile trait bounds other than Sized on const fn parameters are unstable Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants