Skip to content
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

#![deny(warnings)] doesn't work #33911

Closed
GuillaumeGomez opened this issue May 27, 2016 · 3 comments
Closed

#![deny(warnings)] doesn't work #33911

GuillaumeGomez opened this issue May 27, 2016 · 3 comments

Comments

@GuillaumeGomez
Copy link
Member

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.

@TimNN
Copy link
Contributor

TimNN commented May 27, 2016

Could it be that #[deny(warnings)] only works for lints?

@GuillaumeGomez
Copy link
Member Author

That's a possibility. But if it's the case, I find the "deny(warnings)" very badly named. :-/

@nagisa
Copy link
Member

nagisa commented May 28, 2016

Duplicate of #21204

@nagisa nagisa closed this as completed May 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants