1
1
error[E0277]: the trait bound `&dyn std::io::Write: std::io::Write` is not satisfied
2
- --> $DIR/mut-borrow-needed-by-trait.rs:17 :29
2
+ --> $DIR/mut-borrow-needed-by-trait.rs:21 :29
3
3
|
4
4
LL | let fp = BufWriter::new(fp);
5
5
| ^^ the trait `std::io::Write` is not implemented for `&dyn std::io::Write`
@@ -8,7 +8,7 @@ LL | let fp = BufWriter::new(fp);
8
8
= note: required by `std::io::BufWriter::<W>::new`
9
9
10
10
error[E0277]: the trait bound `&dyn std::io::Write: std::io::Write` is not satisfied
11
- --> $DIR/mut-borrow-needed-by-trait.rs:17 :14
11
+ --> $DIR/mut-borrow-needed-by-trait.rs:21 :14
12
12
|
13
13
LL | let fp = BufWriter::new(fp);
14
14
| ^^^^^^^^^^^^^^ the trait `std::io::Write` is not implemented for `&dyn std::io::Write`
@@ -17,7 +17,7 @@ LL | let fp = BufWriter::new(fp);
17
17
= note: required by `std::io::BufWriter`
18
18
19
19
error[E0277]: the trait bound `&dyn std::io::Write: std::io::Write` is not satisfied
20
- --> $DIR/mut-borrow-needed-by-trait.rs:17 :14
20
+ --> $DIR/mut-borrow-needed-by-trait.rs:21 :14
21
21
|
22
22
LL | let fp = BufWriter::new(fp);
23
23
| ^^^^^^^^^^^^^^^^^^ the trait `std::io::Write` is not implemented for `&dyn std::io::Write`
@@ -26,7 +26,7 @@ LL | let fp = BufWriter::new(fp);
26
26
= note: required by `std::io::BufWriter`
27
27
28
28
error[E0599]: no method named `write_fmt` found for struct `std::io::BufWriter<&dyn std::io::Write>` in the current scope
29
- --> $DIR/mut-borrow-needed-by-trait.rs:22 :5
29
+ --> $DIR/mut-borrow-needed-by-trait.rs:26 :5
30
30
|
31
31
LL | writeln!(fp, "hello world").unwrap();
32
32
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `std::io::BufWriter<&dyn std::io::Write>`
0 commit comments