2024-03-29 14:05:54 -05:00
|
|
|
error: expected a pattern, found an expression
|
|
|
|
--> $DIR/ensure-overriding-bindings-in-pattern-with-ty-err-doesnt-ice.rs:2:31
|
|
|
|
|
|
|
|
|
LL | let str::<{fn str() { let str::T>>::as_bytes; }}, T>::as_bytes;
|
2024-10-05 20:44:59 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ not a pattern
|
|
|
|
|
|
|
|
|
= note: arbitrary expressions are not allowed in patterns: <https://doc.rust-lang.org/book/ch18-00-patterns.html>
|
2024-03-29 14:05:54 -05:00
|
|
|
|
|
|
|
error[E0412]: cannot find type `T` in this scope
|
|
|
|
--> $DIR/ensure-overriding-bindings-in-pattern-with-ty-err-doesnt-ice.rs:2:55
|
|
|
|
|
|
|
|
|
LL | let str::<{fn str() { let str::T>>::as_bytes; }}, T>::as_bytes;
|
|
|
|
| ^ not found in this scope
|
|
|
|
|
2024-03-22 01:20:31 -05:00
|
|
|
error[E0109]: const and type arguments are not allowed on builtin type `str`
|
2024-03-29 14:05:54 -05:00
|
|
|
--> $DIR/ensure-overriding-bindings-in-pattern-with-ty-err-doesnt-ice.rs:2:15
|
|
|
|
|
|
|
|
|
LL | let str::<{fn str() { let str::T>>::as_bytes; }}, T>::as_bytes;
|
2024-03-22 01:20:31 -05:00
|
|
|
| --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ const and type arguments not allowed
|
2024-03-29 14:05:54 -05:00
|
|
|
| |
|
|
|
|
| not allowed on builtin type `str`
|
|
|
|
|
|
|
|
|
help: primitive type `str` doesn't have generic parameters
|
|
|
|
|
|
|
|
|
LL - let str::<{fn str() { let str::T>>::as_bytes; }}, T>::as_bytes;
|
|
|
|
LL + let str::as_bytes;
|
|
|
|
|
|
|
|
|
|
2024-04-14 09:26:59 -05:00
|
|
|
error[E0533]: expected unit struct, unit variant or constant, found associated function `str<{
|
2024-05-15 13:18:22 -05:00
|
|
|
fn str() { let (/*ERROR*/); }
|
|
|
|
}, T>::as_bytes`
|
2024-03-29 14:05:54 -05:00
|
|
|
--> $DIR/ensure-overriding-bindings-in-pattern-with-ty-err-doesnt-ice.rs:2:9
|
|
|
|
|
|
|
|
|
LL | let str::<{fn str() { let str::T>>::as_bytes; }}, T>::as_bytes;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a unit struct, unit variant or constant
|
|
|
|
|
2024-06-17 03:15:43 -05:00
|
|
|
error[E0282]: type annotations needed
|
|
|
|
--> $DIR/ensure-overriding-bindings-in-pattern-with-ty-err-doesnt-ice.rs:2:31
|
|
|
|
|
|
|
|
|
LL | let str::<{fn str() { let str::T>>::as_bytes; }}, T>::as_bytes;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: consider giving this pattern a type
|
|
|
|
|
|
|
|
|
LL | let str::<{fn str() { let str::T>>::as_bytes: /* Type */; }}, T>::as_bytes;
|
|
|
|
| ++++++++++++
|
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
2024-03-29 14:05:54 -05:00
|
|
|
|
2024-06-17 03:15:43 -05:00
|
|
|
Some errors have detailed explanations: E0109, E0282, E0412, E0533.
|
2024-03-29 14:05:54 -05:00
|
|
|
For more information about an error, try `rustc --explain E0109`.
|