diff options
| author | John Hodge <tpg@mutabah.net> | 2016-11-21 12:12:27 +0800 |
|---|---|---|
| committer | John Hodge <tpg@mutabah.net> | 2016-11-21 12:12:27 +0800 |
| commit | a7cffac33697b43c9245db8fd7bfc1e6013fc80b (patch) | |
| tree | c36dda9dd113af5332e7fd7ee7dda9778e9519d8 /Notes | |
| parent | 572fa41f6e8691b329a9f3c044f474340cf3472d (diff) | |
| download | mrust-a7cffac33697b43c9245db8fd7bfc1e6013fc80b.tar.gz | |
Quirk - You can cast &[T;n] to *const T
Diffstat (limited to 'Notes')
| -rw-r--r-- | Notes/Quirks.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Notes/Quirks.md b/Notes/Quirks.md index d3b7839d..f9b54022 100644 --- a/Notes/Quirks.md +++ b/Notes/Quirks.md @@ -26,6 +26,10 @@ Any integer can cast to a pointer =================== This includes `u8` +Array &-ptrs appear to be able to be cast to raw pointers of the element type +============================================================================= + + Modules with the same name as primtiive types have interesting lookup quirks =================== |
