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
use axum::response::Html;fnmain(){let app = Html("awd");}
then use "rename" (F2), in use axum::response::Html
use axum::response::HtmlasHtmlRespone;fnmain(){let app = HtmlRespone("awd");}
rm -rf ./target/, because its not affect this project that use source in ./target/, instead its affect other new project that uses cache in ~/.cargo/registry/src
cargo build
error[E0412]: cannot find type`HtmlResponse`in this scope
--> /home/deuzo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/axum-0.7.5/src/response/mod.rs:41:26
|
41 | impl<T> IntoResponse for HtmlResponse<T>| ^^^^^^^^^^^^ help: a trait with a similar name exists: `IntoResponse`|
::: /home/deuzo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/axum-core-0.4.3/src/response/into_response.rs:112:1
|
112 | pub trait IntoResponse {
| ---------------------- similarly named trait `IntoResponse` defined here
error[E0412]: cannot find type`HtmlResponse`in this scope
--> /home/deuzo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/axum-0.7.5/src/response/mod.rs:57:21
|
57 | impl<T> From<T>for HtmlResponse<T> {
| ^^^^^^^^^^^^ help: a trait with a similar name exists: `IntoResponse`|
::: /home/deuzo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/axum-core-0.4.3/src/response/into_response.rs:112:1
|
112 | pub trait IntoResponse {
| ---------------------- similarly named trait `IntoResponse` defined here
For more information about this error, try `rustc --explain E0412`.
error: could not compile `axum` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
the source file in cache renamed
also when i 'write all' in neovim, it shows that it writen file inside ~/.cargo directory
The text was updated successfully, but these errors were encountered:
rust-analyzer version: from
rust-analyzer -V
:rust-analyzer 0.3.1975-standalone
, from nvim masoninstalled version 2024-05-27
rustc version:
rustc 1.78.0 (9b00956e5 2024-04-29)
editor or extension:
nvim --version
:NVIM v0.10.0
relevant settings: RUSTC_WRAPPER=sccache
step to reproduce:
cargo init
cargo add axum
then use "rename" (F2), in
use axum::response::Html
rm -rf ./target/
, because its not affect this project that use source in./target/
, instead its affect other new project that uses cache in~/.cargo/registry/src
cargo build
the source file in cache renamed
also when i 'write all' in neovim, it shows that it writen file inside
~/.cargo
directoryThe text was updated successfully, but these errors were encountered: