Skip to content

Instantly share code, notes, and snippets.

@bvssvni
Created August 22, 2014 15:24
Show Gist options
  • Save bvssvni/0eaff93c6a8cfde9d79a to your computer and use it in GitHub Desktop.
Save bvssvni/0eaff93c6a8cfde9d79a to your computer and use it in GitHub Desktop.
src/gfx2d.rs:112:5: 112:20 error: mismatched types: expected `[f32, .. 2]` but found `&[f32]` (expected vector but found &-ptr)
src/gfx2d.rs:112 pos: [f32, ..2],
^~~~~~~~~~~~~~~
note: in expansion of #[deriving]
src/gfx2d.rs:110:1: 110:19 note: expansion site
src/gfx2d.rs:113:5: 113:22 error: mismatched types: expected `[f32, .. 4]` but found `&[f32]` (expected vector but found &-ptr)
src/gfx2d.rs:113 color: [f32, ..4],
^~~~~~~~~~~~~~~~~
note: in expansion of #[deriving]
src/gfx2d.rs:110:1: 110:19 note: expansion site
src/gfx2d.rs:128:5: 128:20 error: mismatched types: expected `[f32, .. 2]` but found `&[f32]` (expected vector but found &-ptr)
src/gfx2d.rs:128 pos: [f32, ..2],
^~~~~~~~~~~~~~~
note: in expansion of #[deriving]
src/gfx2d.rs:126:1: 126:19 note: expansion site
src/gfx2d.rs:129:5: 129:22 error: mismatched types: expected `[f32, .. 4]` but found `&[f32]` (expected vector but found &-ptr)
src/gfx2d.rs:129 color: [f32, ..4],
^~~~~~~~~~~~~~~~~
note: in expansion of #[deriving]
src/gfx2d.rs:126:1: 126:19 note: expansion site
src/gfx2d.rs:130:5: 130:19 error: mismatched types: expected `[f32, .. 2]` but found `&[f32]` (expected vector but found &-ptr)
src/gfx2d.rs:130 uv: [f32, ..2],
^~~~~~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment