We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unused_associated_type_bounds
1 parent 307b5ff commit 25e3785Copy full SHA for 25e3785
compiler/rustc_lint_defs/src/builtin.rs
@@ -3409,6 +3409,7 @@ declare_lint_pass! {
3409
UNSTABLE_SYNTAX_PRE_EXPANSION,
3410
UNSUPPORTED_CALLING_CONVENTIONS,
3411
UNUSED_ASSIGNMENTS,
3412
+ UNUSED_ASSOCIATED_TYPE_BOUNDS,
3413
UNUSED_ATTRIBUTES,
3414
UNUSED_CRATE_DEPENDENCIES,
3415
UNUSED_EXTERN_CRATES,
tests/ui/object-safety/assoc_type_bounds_sized_unnecessary.rs
@@ -11,4 +11,7 @@ fn foo(_: &dyn Foo<Bar = ()>) {}
11
//~| WARN: unnecessary associated type bound for not object safe associated type
12
13
14
+#[allow(unused_associated_type_bounds)]
15
+fn bar(_: &dyn Foo<Bar = ()>) {}
16
+
17
fn main() {}
0 commit comments