let (span, found_use) = UsePlacementFinder::check(krate, node_id);
if !candidates.is_empty() {
diagnostics::show_candidates(&mut err, span, &candidates, better, found_use);
- }
- if let Some((span, msg, sugg, appl)) = suggestion {
+ } else if let Some((span, msg, sugg, appl)) = suggestion {
err.span_suggestion(span, msg, sugg, appl);
}
err.emit();
|
LL | use foo3::Bar;
|
-help: you might be missing a type parameter
- |
-LL | fn test_glob3<Bar>() {
- | ^^^^^
error[E0107]: wrong number of const arguments: expected 0, found 1
--> $DIR/privacy-ns1.rs:35:17