]> git.lizzy.rs Git - rust.git/blob - tests/ui/crate_level_checks/no_std_swap.rs
Ignore associated items in trait *implementations* when considering type complexity
[rust.git] / tests / ui / crate_level_checks / no_std_swap.rs
1 #![no_std]
2 #![feature(lang_items, start, libc)]
3 #![crate_type = "lib"]
4
5 use core::panic::PanicInfo;
6
7 #[warn(clippy::all)]
8 fn main() {
9     // TODO: do somethjing with swap
10     let mut a = 42;
11     let mut b = 1337;
12
13     a = b;
14     b = a;
15 }