// run-rustfix
#![feature(never_type)]
-#![allow(unused_mut)]
+#![allow(unused_mut, clippy::redundant_allocation)]
#![warn(clippy::must_use_candidate)]
use std::rc::Rc;
use std::sync::atomic::{AtomicBool, Ordering};
}
impl MyPureTrait for MyPure {
- #[must_use] fn trait_impl_pure(&self, i: u32) -> u32 {
+ fn trait_impl_pure(&self, i: u32) -> u32 {
i
}
}
COUNTER
}
+#[no_mangle]
+pub fn unmangled(i: bool) -> bool {
+ !i
+}
+
fn main() {
assert_eq!(1, pure(1));
}