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