2024-03-29 14:05:54 -05: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 01:20:31 -05:00
|
|
|
//~| ERROR const and type arguments are not allowed on builtin type `str`
|
2024-04-14 09:26:59 -05:00
|
|
|
//~| ERROR expected unit struct, unit variant or constant, found associated function `str<
|
2024-03-29 14:05:54 -05:00
|
|
|
}
|