diff --git a/crates/syntax/src/tests.rs b/crates/syntax/src/tests.rs index b4bc6beeade..29b91379ff2 100644 --- a/crates/syntax/src/tests.rs +++ b/crates/syntax/src/tests.rs @@ -183,7 +183,7 @@ fn self_hosting_parsing() { if !errors.is_empty() { let errors = errors .into_iter() - .map(|(path, err)| format!("{}: {:?}\n", path.display(), err)) + .map(|(path, err)| format!("{}: {:?}\n", path.display(), err[0])) .collect::(); panic!("Parsing errors:\n{}\n", errors); }