mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
test for new behavior
This commit is contained in:
@@ -636,6 +636,22 @@ fn test_check_unnecessary_braces_in_use_statement() {
|
||||
use a;
|
||||
use a::{c, d::e};
|
||||
|
||||
mod a {
|
||||
mod c {}
|
||||
mod d {
|
||||
mod e {}
|
||||
}
|
||||
}
|
||||
"#,
|
||||
);
|
||||
check_no_diagnostics(
|
||||
r#"
|
||||
use a;
|
||||
use a::{
|
||||
c,
|
||||
// d::e
|
||||
};
|
||||
|
||||
mod a {
|
||||
mod c {}
|
||||
mod d {
|
||||
|
||||
Reference in New Issue
Block a user