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
The following code:
#![deny(warnings)] trait Foo {} type MyType<R: Foo> = (R, ()); fn main() { let _t: MyType<u32>; }
gives the following warning:
warning: trait bounds are not (yet) enforced in type definitions [--explain E0122] --> <anon>:5:1 5 |> type MyType<R: Foo> = (R, ()); |> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
However it compiles anyway.
The text was updated successfully, but these errors were encountered:
Could it be that #[deny(warnings)] only works for lints?
#[deny(warnings)]
Sorry, something went wrong.
That's a possibility. But if it's the case, I find the "deny(warnings)" very badly named. :-/
Duplicate of #21204
No branches or pull requests
The following code:
gives the following warning:
However it compiles anyway.
The text was updated successfully, but these errors were encountered: