]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_resolve/diagnostics.rs
Replace occurences of illegal in user facing docs
[rust.git] / src / librustc_resolve / diagnostics.rs
index 9f8a5c90d4e1cb0c02c09a25d827497eb5316133..4c9a460d65aed90dd079be7b146237a05acd9133 100644 (file)
@@ -106,7 +106,7 @@ pub trait MyTrait {
 use foo::MyTrait::do_something;
 ```
 
-It's illegal to directly import methods belonging to a trait or concrete type.
+It's invalid to directly import methods belonging to a trait or concrete type.
 "##,
 
 E0255: r##"