Cannot find unit struct, unit variant or constant `SIGABRT` in crate `libc`

vscode installed rust-analyzer, this is the output of rust-analyzer

OS: debian 12

nightly-x86_64-unknown-linux-gnu updated - rustc 1.78.0-nightly (4a0cc881d 2024-03-11) (from rustc 1.78.0-nightly (2d24fe591 2024-03-09))

error[E0531]: cannot find unit struct, unit variant or constant `SIGABRT` in crate `libc`
   --> /home/xiaguangbo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/test/src/test_result.rs:102:24
    |
102 |             Some(libc::SIGABRT) => TestResult::TrFailed,
    |                        ^^^^^^^ not found in `libc`


2 Likes

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.