From a7cffac33697b43c9245db8fd7bfc1e6013fc80b Mon Sep 17 00:00:00 2001 From: John Hodge Date: Mon, 21 Nov 2016 12:12:27 +0800 Subject: Quirk - You can cast &[T;n] to *const T --- Notes/Quirks.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Notes') 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 =================== -- cgit v1.2.3