2024-03-29 19:05:54 +00:00
|
|
|
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
|
2024-03-22 14:20:31 +08:00
|
|
|
//~| ERROR const and type arguments are not allowed on builtin type `str`
|
2024-04-14 10:26:59 -04:00
|
|
|
//~| ERROR expected unit struct, unit variant or constant, found associated function `str<
|
2024-06-17 08:15:43 +00:00
|
|
|
//~| ERROR type annotations needed
|
2024-03-29 19:05:54 +00:00
|
|
|
}
|