mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 12:36:35 +03:00
17 lines
361 B
Rust
17 lines
361 B
Rust
//@no-rustfix: paths that don't exist yet
|
|
#![feature(rustc_private)]
|
|
|
|
extern crate rustc_span;
|
|
|
|
use rustc_span::Symbol;
|
|
|
|
fn main() {
|
|
// Not yet defined
|
|
let _ = Symbol::intern("xyz123");
|
|
//~^ interning_literals
|
|
let _ = Symbol::intern("with-dash");
|
|
//~^ interning_literals
|
|
let _ = Symbol::intern("with.dot");
|
|
//~^ interning_literals
|
|
}
|