]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/compare-method/region-unrelated.stderr
note individual lint name set via lint group attribute in notes
[rust.git] / src / test / ui / compare-method / region-unrelated.stderr
index b7cfdf799bc9d1ac4c47db0e20d05348d7d6da0d..9e822bd8b0790097ff4832bd78edadf41677b8e9 100644 (file)
@@ -7,13 +7,9 @@ error[E0276]: impl has stricter requirements than trait
 22 |     fn foo() where V: 'a { }
    |     ^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `V: 'a`
    |
+   = note: #[deny(extra_requirement_in_impl)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #37166 <https://github.com/rust-lang/rust/issues/37166>
-note: lint level defined here
-  --> $DIR/region-unrelated.rs:12:9
-   |
-12 | #![deny(extra_requirement_in_impl)]
-   |         ^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: aborting due to previous error