]> git.lizzy.rs Git - rust.git/blob - tests/ui/op_ref.rs
Adapt the *.stderr files of the ui-tests to the tool_lints
[rust.git] / tests / ui / op_ref.rs
1 #![feature(tool_lints)]
2
3
4 #![allow(unused_variables, clippy::blacklisted_name)]
5
6 use std::collections::HashSet;
7
8 fn main() {
9     let tracked_fds: HashSet<i32> = HashSet::new();
10     let new_fds = HashSet::new();
11     let unwanted = &tracked_fds - &new_fds;
12     
13     let foo = &5 - &6;
14
15     let bar = String::new();
16     let bar = "foo" == &bar;
17
18     let a = "a".to_string();
19     let b = "a";
20
21     if b < &a {
22         println!("OK");
23     }
24 }