Skip to content

Commit 8f2e5c7

Browse files
Improve Error Message about Self-Referential Types (#727)
1 parent 4a65221 commit 8f2e5c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

slicec/src/diagnostics/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ implement_diagnostic_functions!(
523523
(
524524
"E047",
525525
InfiniteSizeCycle,
526-
format!("self-referential type {type_id} has infinite size: {cycle}"),
526+
format!("type {type_id} illegally references itself: {cycle}"),
527527
type_id, cycle
528528
),
529529
(

0 commit comments

Comments
 (0)