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

Error: trait bounds other than Sized on const fn parameters are unstable #73

Closed
Niraj-Kamdar opened this issue Nov 13, 2022 · 2 comments

Comments

@Niraj-Kamdar
Copy link

#24 64.60 error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
#24 64.60    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/fraction-0.12.1/src/fraction/generic_fraction.rs:164:6
#24 64.60     |
#24 64.60 164 | impl<T> GenericFraction<T>
#24 64.60     |      ^
#24 64.60 ...
#24 64.60 275 |     pub const fn new_raw(num: T, den: T) -> GenericFraction<T> {

#24 64.60     |     ---------------------------------------------------------- function declared as const here
#24 64.60     |
#24 64.60     = note: see issue #93706 <https://github.com/rust-lang/rust/issues/93706> for more information

@dnsl48
Copy link
Owner

dnsl48 commented Nov 14, 2022

Hi @Niraj-Kamdar thanks for reporting the issue!
That seems to have been stabilised about 9 months ago - rust-lang/rust#93827
My guess is you might use an old compiler version.
Otherwise, we would appreciate more details about how to reproduce it.

@dnsl48 dnsl48 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 16, 2022
@Niraj-Kamdar
Copy link
Author

@dnsl48 We were having this issue since we are suing the old version of rust but I currently fixed it by downgrading fraction version.

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

No branches or pull requests

2 participants