rust/tests/ui/lint/lint-unnecessary-import-braces.rs
Lukas Wirth eae7fe1bdb Use non-2015 edition paths in tests that do not test for their resolution
This allows for testing these tests on editions other than 2015
2025-06-03 13:35:31 +02:00

12 lines
221 B
Rust

#![deny(unused_import_braces)]
use crate::test::{A}; //~ ERROR braces around A is unnecessary
mod test {
use crate::test::{self}; // OK
use crate::test::{self as rename}; // OK
pub struct A;
}
fn main() {}