rust/tests/ui/parser/triple-colon.fixed

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
838 B
Rust
Raw Normal View History

2024-09-21 12:07:52 -05:00
//@ run-rustfix
#![allow(unused)]
use ::std::{cell as _}; //~ ERROR path separator must be a double colon
use std::cell::*; //~ ERROR path separator must be a double colon
use std::cell::Cell; //~ ERROR path separator must be a double colon
use std::{cell as _}; //~ ERROR path separator must be a double colon
mod foo{
use ::{}; //~ ERROR path separator must be a double colon
use ::*; //~ ERROR path separator must be a double colon
}
fn main() {
let c: ::std::cell::Cell::<u8> = Cell::<u8>::new(0);
//~^ ERROR path separator must be a double colon
//~| ERROR path separator must be a double colon
//~| ERROR path separator must be a double colon
//~| ERROR path separator must be a double colon
//~| ERROR path separator must be a double colon
//~| ERROR path separator must be a double colon
}