fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
527 B31 linesraw
1// run-rustfix
2
3#![deny(unused_qualifications)]
4#![feature(unsized_fn_params)]
5
6#[allow(unused_imports)]
7use std::ops;
8use std::ops::Index;
9
10pub struct A;
11
12impl Index<str> for A {
13    //~^ ERROR unnecessary qualification
14    type Output = ();
15    fn index(&self, _: str) -> &Self::Output {
16        &()
17    }
18}
19
20mod inner {
21    pub trait Trait<T> {}
22}
23
24// the import needs to be here for the lint to show up
25#[allow(unused_imports)]
26use inner::Trait;
27
28impl Trait<u8> for () {}
29//~^ ERROR unnecessary qualification
30
31fn main() {}