We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
fn foo<T:?>() {}
Both of the following compile fine https://is.gd/k1iXTl:
fn foo<T:?>() {} use std::error::Error; fn bar<E>() -> Result<(),E> where E : Error + ? { Ok(()) }
I would have expected that a lonely ? (without a trait name) in a bound was an error.
?
(Thanks @tomaka on IRC for the simpler repro.)
The text was updated successfully, but these errors were encountered:
Interestingly, this reproduces on stable, but not on beta or nightly. Here both is an error.
Sorry, something went wrong.
Fixed in #41077.
https://github.com/rust-lang/rust/blob/master/src/test/parse-fail/bound-single-question-mark.rs
No branches or pull requests
Both of the following compile fine https://is.gd/k1iXTl:
I would have expected that a lonely
?
(without a trait name) in a bound was an error.(Thanks @tomaka on IRC for the simpler repro.)
The text was updated successfully, but these errors were encountered: