mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
1012218ba8
Move some error report codes to mod `astconv/errors.rs`
8 lines
359 B
Rust
8 lines
359 B
Rust
fn main() {
|
|
let str::<{fn str() { let str::T>>::as_bytes; }}, T>::as_bytes;
|
|
//~^ ERROR expected a pattern, found an expression
|
|
//~| ERROR cannot find type `T` in this scope
|
|
//~| ERROR const and type arguments are not allowed on builtin type `str`
|
|
//~| ERROR expected unit struct, unit variant or constant, found associated function `str<, T>::as_bytes`
|
|
}
|