about summary refs log tree commit diff
path: root/src/test/ui
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2020-05-28 16:31:48 -0700
committerEsteban Küber <esteban@kuber.com.ar>2020-05-28 16:31:48 -0700
commit04243710a0077ad140b8259c21bc1aac02057a48 (patch)
tree49b30c93b3b984fa66922b1ea60b7db4689d86ce /src/test/ui
parentff991d60349201a90ca15202dd0323ebdfab8745 (diff)
Account for trailing comma when suggesting `where` clauses
Fix #72693.
Diffstat (limited to 'src/test/ui')
-rw-r--r--src/test/ui/bound-suggestions.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/bound-suggestions.rs b/src/test/ui/bound-suggestions.rs
index 605a6df8386..562dec9f080 100644
--- a/src/test/ui/bound-suggestions.rs
+++ b/src/test/ui/bound-suggestions.rs
@@ -19,7 +19,7 @@ fn test_one_bound<T: Sized>(t: T) {
 }
 
 #[allow(dead_code)]
-fn test_no_bounds_where<X, Y>(x: X, y: Y) where X: std::fmt::Debug {
+fn test_no_bounds_where<X, Y>(x: X, y: Y) where X: std::fmt::Debug, {
     println!("{:?} {:?}", x, y);
     //~^ ERROR doesn't implement
 }