Skip to content

Commit 0ace7a6

Browse files
Improve error message about self-referential types.
1 parent 4bed9d6 commit 0ace7a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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!("disallowed type cycle; type {type_id} references itself: {cycle}"),
527527
type_id, cycle
528528
),
529529
(

0 commit comments

Comments
 (0)