|
| 1 | +error: expected a pattern, found an expression |
| 2 | + --> $DIR/ensure-overriding-bindings-in-pattern-with-ty-err-doesnt-ice.rs:2:31 |
| 3 | + | |
| 4 | +LL | let str::<{fn str() { let str::T>>::as_bytes; }}, T>::as_bytes; |
| 5 | + | ^^^^^^^^^^^^^^^^^^ arbitrary expressions are not allowed in patterns |
| 6 | + |
| 7 | +error[E0412]: cannot find type `T` in this scope |
| 8 | + --> $DIR/ensure-overriding-bindings-in-pattern-with-ty-err-doesnt-ice.rs:2:55 |
| 9 | + | |
| 10 | +LL | let str::<{fn str() { let str::T>>::as_bytes; }}, T>::as_bytes; |
| 11 | + | ^ not found in this scope |
| 12 | + |
| 13 | +error[E0109]: type and const arguments are not allowed on builtin type `str` |
| 14 | + --> $DIR/ensure-overriding-bindings-in-pattern-with-ty-err-doesnt-ice.rs:2:15 |
| 15 | + | |
| 16 | +LL | let str::<{fn str() { let str::T>>::as_bytes; }}, T>::as_bytes; |
| 17 | + | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ type and const arguments not allowed |
| 18 | + | | |
| 19 | + | not allowed on builtin type `str` |
| 20 | + | |
| 21 | +help: primitive type `str` doesn't have generic parameters |
| 22 | + | |
| 23 | +LL - let str::<{fn str() { let str::T>>::as_bytes; }}, T>::as_bytes; |
| 24 | +LL + let str::as_bytes; |
| 25 | + | |
| 26 | + |
| 27 | +error[E0533]: expected unit struct, unit variant or constant, found associated function `str<, T>::as_bytes` |
| 28 | + --> $DIR/ensure-overriding-bindings-in-pattern-with-ty-err-doesnt-ice.rs:2:9 |
| 29 | + | |
| 30 | +LL | let str::<{fn str() { let str::T>>::as_bytes; }}, T>::as_bytes; |
| 31 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a unit struct, unit variant or constant |
| 32 | + |
| 33 | +error: aborting due to 4 previous errors |
| 34 | + |
| 35 | +Some errors have detailed explanations: E0109, E0412, E0533. |
| 36 | +For more information about an error, try `rustc --explain E0109`. |
0 commit comments