]> git.lizzy.rs Git - rust.git/blob - tests/ui/verbose_file_reads.stderr
Addition `manual_map` test for `unsafe` blocks
[rust.git] / tests / ui / verbose_file_reads.stderr
1 error: use of `File::read_to_end`
2   --> $DIR/verbose_file_reads.rs:23:5
3    |
4 LL |     f.read_to_end(&mut buffer)?;
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::verbose-file-reads` implied by `-D warnings`
8    = help: consider using `fs::read` instead
9
10 error: use of `File::read_to_string`
11   --> $DIR/verbose_file_reads.rs:26:5
12    |
13 LL |     f.read_to_string(&mut string_buffer)?;
14    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15    |
16    = help: consider using `fs::read_to_string` instead
17
18 error: aborting due to 2 previous errors
19