Skip to content

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

@Niraj-Kamdar

Description

@Niraj-Kamdar
#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions