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.
1 parent 0071ce3 commit c1990a0Copy full SHA for c1990a0
1 file changed
compiler/rustc_parse/src/errors.rs
@@ -1269,11 +1269,12 @@ pub(crate) struct IncorrectVisibilityRestriction {
1269
}
1270
1271
#[derive(Diagnostic)]
1272
-#[diag("incorrect impl restriction")]
+#[diag("incorrect `impl` restriction")]
1273
#[help(
1274
- "some possible impl restrictions are:
+ "some possible `impl` restrictions are:
1275
`impl(crate)`: can only be implemented in the current crate
1276
`impl(super)`: can only be implemented in the parent module
1277
+ `impl(self)`: can only be implemented in current module
1278
`impl(in path::to::module)`: can only be implemented in the specified path"
1279
)]
1280
pub(crate) struct IncorrectImplRestriction {
0 commit comments