summaryrefslogtreecommitdiff
path: root/Notes
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-11-21 12:12:27 +0800
committerJohn Hodge <tpg@mutabah.net>2016-11-21 12:12:27 +0800
commita7cffac33697b43c9245db8fd7bfc1e6013fc80b (patch)
treec36dda9dd113af5332e7fd7ee7dda9778e9519d8 /Notes
parent572fa41f6e8691b329a9f3c044f474340cf3472d (diff)
downloadmrust-a7cffac33697b43c9245db8fd7bfc1e6013fc80b.tar.gz
Quirk - You can cast &[T;n] to *const T
Diffstat (limited to 'Notes')
-rw-r--r--Notes/Quirks.md4
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
===================