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
I tried this code: playground
#![feature(return_position_impl_trait_in_trait)] #![allow(incomplete_features)] trait Wf<T> {} trait Uwu { fn owo() -> impl ?Sized; fn nya() -> impl Wf<Vec<[u8]>>; } fn main() {}
I expected to see this happen: Code fails to compile, as these two return types are not well-formed
Instead, this happened: Compiles, but actually implementing the types will error
rustc --version --verbose:
rustc --version --verbose
rustc 1.65.0-nightly (1d37ed661 2022-09-09) binary: rustc commit-hash: 1d37ed661a6922e7a167609b8cd7eb31e972b19b commit-date: 2022-09-09 host: x86_64-unknown-linux-gnu release: 1.65.0-nightly LLVM version: 15.0.0
The text was updated successfully, but these errors were encountered:
@rustbot label F-return_position_impl_trait_in_trait
Sorry, something went wrong.
impl Trait
5faf033
compiler-errors
Successfully merging a pull request may close this issue.
I tried this code: playground
I expected to see this happen: Code fails to compile, as these two return types are not well-formed
Instead, this happened: Compiles, but actually implementing the types will error
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: