summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/crate_level_checks/no_std_swap.rs
blob: d3571eaf0d7be19de449329da567f9ae58bb24ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![no_std]
#![feature(lang_items, start, libc)]
#![crate_type = "lib"]

use core::panic::PanicInfo;

#[warn(clippy::all)]
fn main() {
    let mut a = 42;
    let mut b = 1337;

    a = b;
    b = a;
}