compiler: turn a warning into an error

cc #2024
This commit is contained in:
Olivier Goffart 2023-03-20 16:46:40 +01:00 committed by Olivier Goffart
parent c82bb1515e
commit 47ac396bc0
2 changed files with 7 additions and 7 deletions

View file

@ -1282,7 +1282,7 @@ impl Element {
| SyntaxKind::RepeatedElement
| SyntaxKind::ChildrenPlaceholder
) {
diag.push_warning("A ListView can just have a single 'for' as children. Anything else is not supported".into(), &se)
diag.push_error("A ListView can just have a single 'for' as children. Anything else is not supported".into(), &se)
}
}
}