about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui-internal/symbol_as_str_unfixable.rs
blob: 635f28007e9af0a19b13c0860acca456e3a906a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@no-rustfix: paths that don't exist yet
#![feature(rustc_private)]

extern crate rustc_span;

use rustc_span::Symbol;

fn f(s: Symbol) {
    s.as_str() == "xyz123";
    //~^ symbol_as_str
    s.as_str() == "with-dash";
    //~^ symbol_as_str
    s.as_str() == "with.dot";
    //~^ symbol_as_str
}