extern crate foo as bar;
gives outdated & unhelpful error message
#17709
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
Fails to compile with:
The problem is the
foo
currently needs to be a string:extern crate "foo" as bar
. The error message is referring to=
still (the old syntax), and it could easily be improved to say "maybe you meant to enclosefoo
in a string".The text was updated successfully, but these errors were encountered: