-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Grant Wuerker
committed
Nov 28, 2023
1 parent
f822ca2
commit 258a3c5
Showing
8 changed files
with
114 additions
and
47 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,4 @@ pub struct S5<T> { | |
|
||
pub struct S6 { | ||
s: S5<S6> | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,33 @@ | ||
--- | ||
source: crates/uitest/tests/ty.rs | ||
expression: diags | ||
input_file: crates/uitest/fixtures/ty/recursive_type.fe | ||
input_file: crates/uitest/fixtures/ty/def/recursive_type.fe | ||
--- | ||
error[3-0002]: recursive type is not allowed | ||
┌─ recursive_type.fe:1:12 | ||
│ | ||
1 │ pub struct S1 { | ||
│ ^^ recursive type definition | ||
2 │ s: S1 | ||
│ -- recursion occurs here | ||
│ ^^ | ||
│ │ | ||
│ recursive type definition | ||
│ recursion occurs here | ||
|
||
error[3-0002]: recursive type is not allowed | ||
┌─ recursive_type.fe:5:12 | ||
│ | ||
5 │ pub struct S2 { | ||
│ ^^ recursive type definition | ||
6 │ s: S3 | ||
│ -- recursion occurs here | ||
|
||
error[3-0002]: recursive type is not allowed | ||
┌─ recursive_type.fe:9:12 | ||
│ | ||
9 │ pub struct S3 { | ||
│ ^^ recursive type definition | ||
10 │ s: S4 | ||
│ -- recursion occurs here | ||
|
||
error[3-0002]: recursive type is not allowed | ||
┌─ recursive_type.fe:13:12 | ||
│ | ||
13 │ pub struct S4 { | ||
│ ^^ recursive type definition | ||
14 │ s: S2 | ||
│ -- recursion occurs here | ||
│ ^^ | ||
│ │ | ||
│ recursive type definition | ||
│ recursion occurs here | ||
|
||
error[3-0002]: recursive type is not allowed | ||
┌─ recursive_type.fe:22:12 | ||
│ | ||
22 │ pub struct S6 { | ||
│ ^^ recursive type definition | ||
23 │ s: S5<S6> | ||
│ ------ recursion occurs here | ||
│ ^^ | ||
│ │ | ||
│ recursive type definition | ||
│ recursion occurs here | ||
|
||
|