]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/compare-method/proj-outlives-region.stderr
note individual lint name set via lint group attribute in notes
[rust.git] / src / test / ui / compare-method / proj-outlives-region.stderr
index 79293e0deed604bf895d6e8e1419ed496f2e6268..2a707c6eb8b103b428de32c4fb5f2c64f848b38a 100644 (file)
@@ -7,13 +7,9 @@ error[E0276]: impl has stricter requirements than trait
 22 |     fn foo() where U: 'a { } //~ ERROR E0276
    |     ^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `U: '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/proj-outlives-region.rs:12:9
-   |
-12 | #![deny(extra_requirement_in_impl)]
-   |         ^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: aborting due to previous error