Skip to content

Upgrade to latest Rust #310

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

Closed
zummenix opened this issue Feb 8, 2015 · 3 comments
Closed

Upgrade to latest Rust #310

zummenix opened this issue Feb 8, 2015 · 3 comments
Assignees
Labels

Comments

@zummenix
Copy link
Contributor

zummenix commented Feb 8, 2015

Upgrade conrod and all_widgets.rs to latest Rust.

@zummenix zummenix added the easy label Feb 8, 2015
@zummenix zummenix self-assigned this Feb 8, 2015
@zummenix
Copy link
Contributor Author

zummenix commented Feb 8, 2015

I'm stuck with this error:

src/envelope_editor.rs:402:32: 402:45 error: type annotations required: cannot resolve
`<<E as envelope_editor::EnvelopePoint>::X as core::ops::Sub>::Output == <E as
envelope_editor::EnvelopePoint>::X` [E0284]

I don't know maybe rust-lang/rust#22036 is relevant.

@zummenix
Copy link
Contributor Author

zummenix commented Feb 8, 2015

Possible solution is to add dummy function:

fn dummy_sub<T: Float>(max: T, min: T) -> T {
    max - min
}

@mitchmindtree
Copy link
Contributor

Thanks for this, I've been running into a few strange errors with assoc types like this, hopefully things will clear up over the next couple weeks :)

I've added your suggestion as a temp fix with a note in src, will PR and merge it in a minute.

zummenix added a commit to zummenix/conrod that referenced this issue Feb 15, 2015
zummenix added a commit that referenced this issue Feb 15, 2015
Removed temporary fix for #310.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants