You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I was using a crate which had a struct with a number of associated items and I was trying to save typing in an error handling function. But:
12 | use rocket::http::Status::*;
| ^^^^^^ `Status` is a struct, not a module
I looked in the Reference and I wasn't able to find any discussion of this. In particular, I would expect it to be documented in the explanation of Use declarations under Items.
Uh oh!
There was an error while loading. Please reload this page.
Hi. I was using a crate which had a struct with a number of associated items and I was trying to save typing in an error handling function. But:
I looked in the Reference and I wasn't able to find any discussion of this. In particular, I would expect it to be documented in the explanation of Use declarations under Items.
After considerably more digging, I found:
use
d rust#24915, a closed issue where the resolution was that this is not expected to workIt would be nice if this restriction were documented. See also rust-lang/rust#74030 where I suggest that a better error message would be nice. Thanks.
The text was updated successfully, but these errors were encountered: