Commit 3e1608c
committed
Use struct name as span instead of entire block
```
error[E0072]: recursive type `ListNode` has infinite size
--> ../../../src/test/compile-fail/E0072.rs:11:8
|
11 | struct ListNode { //~ ERROR E0072
| ^^^^^^^^ recursive type has infinite size
|
= help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `ListNode` representable
```1 parent 6483bdd commit 3e1608c
1 file changed
+7
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
5005 | 5005 | | |
5006 | 5006 | | |
5007 | 5007 | | |
5008 | | - | |
| 5008 | + | |
5009 | 5009 | | |
| 5010 | + | |
5010 | 5011 | | |
5011 | 5012 | | |
5012 | 5013 | | |
| |||
5050 | 5051 | | |
5051 | 5052 | | |
5052 | 5053 | | |
5053 | | - | |
| 5054 | + | |
5054 | 5055 | | |
5055 | 5056 | | |
5056 | 5057 | | |
| |||
5920 | 5921 | | |
5921 | 5922 | | |
5922 | 5923 | | |
5923 | | - | |
5924 | | - | |
5925 | | - | |
5926 | | - | |
| 5924 | + | |
| 5925 | + | |
| 5926 | + | |
5927 | 5927 | | |
5928 | 5928 | | |
5929 | 5929 | | |
| |||
0 commit comments