Thanks for all the corrections and feedback so far. Another strange one
that has me stumped. This one gives me a strange error that reads like the
e-mail subject.

----
macro_rules! VectorT {
    ($Vec:ident, $n:expr) => (
        struct $Vec<T> {
            priv mut m_v: [T * $n];
        }
    );
}

VectorT!(Vector3, 3)

fn main() { }
----

The error I get is
error: expected integral vector length but found `3`
  priv mut m_v: [T * $n];
                      ^
(the caret points to the "$n" part). I get the same error if I use 3u
instead of 3. There is no other fragment specifier that I can use for $n,
so I am stumped. Any clues?

Thanks in advance,
Ashish
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to