summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui-toml/await_holding_invalid_type/await_holding_invalid_type.stderr
blob: 4c75998437fd5c256ed6789de53cbf68706825c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
error: `std::string::String` may not be held across an `await` point per `clippy.toml`
  --> $DIR/await_holding_invalid_type.rs:5:9
   |
LL |     let _x = String::from("hello");
   |         ^^
   |
   = note: strings are bad
   = note: `-D clippy::await-holding-invalid-type` implied by `-D warnings`

error: `std::net::Ipv4Addr` may not be held across an `await` point per `clippy.toml`
  --> $DIR/await_holding_invalid_type.rs:10:9
   |
LL |     let _x = Ipv4Addr::new(127, 0, 0, 1);
   |         ^^

error: `std::string::String` may not be held across an `await` point per `clippy.toml`
  --> $DIR/await_holding_invalid_type.rs:31:13
   |
LL |         let _x = String::from("hi!");
   |             ^^
   |
   = note: strings are bad

error: aborting due to 3 previous errors