You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Switching from tower 0.4 to tower 0.5.0 in an application using axum, couldn't compile tower lib due to the following error :
Compiling tower v0.5.0
error[E0015]: cannot call non-const fn Identity::new in constant functions
--> C:...\tower-0.5.0\src\builder\mod.rs:120:20
|
120 | layer: Identity::new(),
| ^^^^^^^^^^^^^^^
|
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
System : Windows 11
Rust : latest stable version.
The text was updated successfully, but these errors were encountered:
Switching from tower 0.4 to tower 0.5.0 in an application using axum, couldn't compile tower lib due to the following error :
Compiling tower v0.5.0
error[E0015]: cannot call non-const fn
Identity::new
in constant functions--> C:...\tower-0.5.0\src\builder\mod.rs:120:20
|
120 | layer: Identity::new(),
| ^^^^^^^^^^^^^^^
|
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
System : Windows 11
Rust : latest stable version.
The text was updated successfully, but these errors were encountered: