about summary refs log tree commit diff
path: root/tests/ui/suggestions/mut-borrow-needed-by-trait.rs
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2024-06-10 10:15:37 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2024-06-17 10:57:52 +0000
commit94f549502f4bf6fae35f17c823924f041217c8f4 (patch)
tree4b8fa126b69cb8f5ca9004849a9aff16fce0b5eb /tests/ui/suggestions/mut-borrow-needed-by-trait.rs
parente23ae72ac7a393961886ea62df065ebb6def7d51 (diff)
downloadrust-94f549502f4bf6fae35f17c823924f041217c8f4.tar.gz
rust-94f549502f4bf6fae35f17c823924f041217c8f4.zip
Use subtyping instead of equality, since method resolution also uses subtyping
Diffstat (limited to 'tests/ui/suggestions/mut-borrow-needed-by-trait.rs')
-rw-r--r--tests/ui/suggestions/mut-borrow-needed-by-trait.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/suggestions/mut-borrow-needed-by-trait.rs b/tests/ui/suggestions/mut-borrow-needed-by-trait.rs
index 66e1e77c905..924bfd82eb8 100644
--- a/tests/ui/suggestions/mut-borrow-needed-by-trait.rs
+++ b/tests/ui/suggestions/mut-borrow-needed-by-trait.rs
@@ -17,6 +17,7 @@ fn main() {
     let fp = BufWriter::new(fp);
     //~^ ERROR the trait bound `&dyn std::io::Write: std::io::Write` is not satisfied
     //~| ERROR the trait bound `&dyn std::io::Write: std::io::Write` is not satisfied
+    //~| ERROR the trait bound `&dyn std::io::Write: std::io::Write` is not satisfied
 
     writeln!(fp, "hello world").unwrap(); //~ ERROR the method
 }