{"action":"created","issue":{"url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/105","repository_url":"https://api.github.com/repos/rustwasm/wasm-bindgen","labels_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/105/comments","events_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/105/events","html_url":"https://github.com/rustwasm/wasm-bindgen/issues/105","id":311815356,"number":105,"title":"\"Basic Usage\" is failing for me","user":{"login":"markandrus","id":359154,"avatar_url":"https://avatars3.githubusercontent.com/u/359154?v=4","gravatar_id":"","url":"https://api.github.com/users/markandrus","html_url":"https://github.com/markandrus","followers_url":"https://api.github.com/users/markandrus/followers","following_url":"https://api.github.com/users/markandrus/following{/other_user}","gists_url":"https://api.github.com/users/markandrus/gists{/gist_id}","starred_url":"https://api.github.com/users/markandrus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markandrus/subscriptions","organizations_url":"https://api.github.com/users/markandrus/orgs","repos_url":"https://api.github.com/users/markandrus/repos","events_url":"https://api.github.com/users/markandrus/events{/privacy}","received_events_url":"https://api.github.com/users/markandrus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-06T00:46:07Z","updated_at":"2018-04-06T01:08:57Z","closed_at":"2018-04-06T00:59:43Z","author_association":"NONE","body":"Hi,\r\n\r\nAwesome project! I wanted to try it out, but if failed for me.\r\n\r\n```\r\n$ rustup --version\r\nrustup 1.11.0 ( )\r\n$ cargo --version\r\ncargo 1.26.0-nightly (b70ab13b3 2018-04-04)\r\n$ wasm-bindgen --version\r\nwasm-bindgen 0.2.0\r\n$ rustc --version\r\nrustc 1.27.0-nightly (48fa6f963 2018-04-05)\r\n```\r\n\r\nI followed the instructions in \"Basic Usage\". This is what happened\r\n\r\n```\r\n$ cargo build --target wasm32-unknown-unknown\r\n   Compiling proc-macro2 v0.3.3\r\nerror[E0433]: failed to resolve. Could not find `TokenNode` in `proc_macro`\r\n  --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:63:41\r\n   |\r\n63 |                 let group = proc_macro::TokenNode::Group(delim, tt.stream.inner.0);\r\n   |                                         ^^^^^^^^^ Could not find `TokenNode` in `proc_macro`\r\n\r\nerror[E0433]: failed to resolve. Could not find `TokenNode` in `proc_macro`\r\n  --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:71:47\r\n   |\r\n71 |                 (tt.span().inner, proc_macro::TokenNode::Op(tt.op(), kind))\r\n   |                                               ^^^^^^^^^ Could not find `TokenNode` in `proc_macro`\r\n\r\nerror[E0433]: failed to resolve. Could not find `TokenNode` in `proc_macro`\r\n  --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:73:64\r\n   |\r\n73 |             TokenTree::Term(tt) => (tt.inner.span, proc_macro::TokenNode::Term(tt.inner.term)),\r\n   |                                                                ^^^^^^^^^ Could not find `TokenNode` in `proc_macro`\r\n\r\nerror[E0433]: failed to resolve. Could not find `TokenNode` in `proc_macro`\r\n  --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:74:67\r\n   |\r\n74 |             TokenTree::Literal(tt) => (tt.inner.span, proc_macro::TokenNode::Literal(tt.inner.lit)),\r\n   |                                                                   ^^^^^^^^^ Could not find `TokenNode` in `proc_macro`\r\n\r\nerror[E0433]: failed to resolve. Could not find `TokenNode` in `proc_macro`\r\n   --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:122:25\r\n    |\r\n122 |             proc_macro::TokenNode::Group(delim, s) => {\r\n    |                         ^^^^^^^^^ Could not find `TokenNode` in `proc_macro`\r\n\r\nerror[E0433]: failed to resolve. Could not find `TokenNode` in `proc_macro`\r\n   --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:134:25\r\n    |\r\n134 |             proc_macro::TokenNode::Op(ch, kind) => {\r\n    |                         ^^^^^^^^^ Could not find `TokenNode` in `proc_macro`\r\n\r\nerror[E0433]: failed to resolve. Could not find `TokenNode` in `proc_macro`\r\n   --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:143:25\r\n    |\r\n143 |             proc_macro::TokenNode::Term(s) => {\r\n    |                         ^^^^^^^^^ Could not find `TokenNode` in `proc_macro`\r\n\r\nerror[E0433]: failed to resolve. Could not find `TokenNode` in `proc_macro`\r\n   --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:149:25\r\n    |\r\n149 |             proc_macro::TokenNode::Literal(l) => {\r\n    |                         ^^^^^^^^^ Could not find `TokenNode` in `proc_macro`\r\n\r\nerror[E0574]: expected struct, variant or union type, found enum `proc_macro::TokenTree`\r\n  --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:77:13\r\n   |\r\n77 |             proc_macro::TokenTree {\r\n   |             ^^^^^^^^^^^^^^^^^^^^^ not a struct, variant or union type\r\n\r\nerror[E0412]: cannot find type `TokenTreeIter` in module `proc_macro`\r\n   --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:104:38\r\n    |\r\n104 | pub struct TokenTreeIter(proc_macro::TokenTreeIter);\r\n    |                                      ^^^^^^^^^^^^^ did you mean `TokenTree`?\r\nhelp: possible candidate is found in another module, you can import it into scope\r\n    |\r\n3   | use imp::TokenTreeIter;\r\n    |\r\n\r\nerror[E0277]: the trait bound `proc_macro::TokenStream: std::iter::FromIterator<imp::TokenStream>` is not satisfied\r\n  --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:88:29\r\n   |\r\n88 |         TokenStream(streams.collect::<proc_macro::TokenStream>())\r\n   |                             ^^^^^^^ a collection of type `proc_macro::TokenStream` cannot be built from an iterator over elements of type `imp::TokenStream`\r\n   |\r\n   = help: the trait `std::iter::FromIterator<imp::TokenStream>` is not implemented for `proc_macro::TokenStream`\r\n\r\nerror[E0369]: binary operation `==` cannot be applied to type `proc_macro::Span`\r\n   --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:217:17\r\n    |\r\n217 | pub struct Span(proc_macro::Span);\r\n    |                 ^^^^^^^^^^^^^^^^^\r\n    |\r\n    = note: an implementation of `std::cmp::PartialEq` might be missing for `proc_macro::Span`\r\n\r\nerror[E0369]: binary operation `!=` cannot be applied to type `proc_macro::Span`\r\n   --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:217:17\r\n    |\r\n217 | pub struct Span(proc_macro::Span);\r\n    |                 ^^^^^^^^^^^^^^^^^\r\n    |\r\n    = note: an implementation of `std::cmp::PartialEq` might be missing for `proc_macro::Span`\r\n\r\nerror[E0277]: the trait bound `proc_macro::Span: std::cmp::Eq` is not satisfied\r\n   --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:217:17\r\n    |\r\n217 | pub struct Span(proc_macro::Span);\r\n    |                 ^^^^^^^^^^^^^^^^^ the trait `std::cmp::Eq` is not implemented for `proc_macro::Span`\r\n    |\r\n    = note: required by `std::cmp::AssertParamIsEq`\r\n\r\nerror[E0599]: no function or associated item named `intern` found for type `proc_macro::Term` in the current scope\r\n   --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:280:19\r\n    |\r\n280 |             term: proc_macro::Term::intern(string),\r\n    |                   ^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Term`\r\n\r\nerror[E0599]: no function or associated item named `u8` found for type `proc_macro::Literal` in the current scope\r\n   --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:313:27\r\n    |\r\n313 |               Literal::_new(proc_macro::Literal::$kind(n))\r\n    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`\r\n...\r\n334 | /     suffixed_numbers! {\r\n335 | |         u8_suffixed => u8,\r\n336 | |         u16_suffixed => u16,\r\n337 | |         u32_suffixed => u32,\r\n...   |\r\n347 | |         f64_suffixed => f64,\r\n348 | |     }\r\n    | |_____- in this macro invocation\r\n\r\nerror[E0599]: no function or associated item named `u16` found for type `proc_macro::Literal` in the current scope\r\n   --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:313:27\r\n    |\r\n313 |               Literal::_new(proc_macro::Literal::$kind(n))\r\n    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`\r\n...\r\n334 | /     suffixed_numbers! {\r\n335 | |         u8_suffixed => u8,\r\n336 | |         u16_suffixed => u16,\r\n337 | |         u32_suffixed => u32,\r\n...   |\r\n347 | |         f64_suffixed => f64,\r\n348 | |     }\r\n    | |_____- in this macro invocation\r\n\r\nerror[E0599]: no function or associated item named `u32` found for type `proc_macro::Literal` in the current scope\r\n   --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:313:27\r\n    |\r\n313 |               Literal::_new(proc_macro::Literal::$kind(n))\r\n    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`\r\n...\r\n334 | /     suffixed_numbers! {\r\n335 | |         u8_suffixed => u8,\r\n336 | |         u16_suffixed => u16,\r\n337 | |         u32_suffixed => u32,\r\n...   |\r\n347 | |         f64_suffixed => f64,\r\n348 | |     }\r\n    | |_____- in this macro invocation\r\n\r\nerror[E0599]: no function or associated item named `u64` found for type `proc_macro::Literal` in the current scope\r\n   --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:313:27\r\n    |\r\n313 |               Literal::_new(proc_macro::Literal::$kind(n))\r\n    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`\r\n...\r\n334 | /     suffixed_numbers! {\r\n335 | |         u8_suffixed => u8,\r\n336 | |         u16_suffixed => u16,\r\n337 | |         u32_suffixed => u32,\r\n...   |\r\n347 | |         f64_suffixed => f64,\r\n348 | |     }\r\n    | |_____- in this macro invocation\r\n\r\nerror[E0599]: no function or associated item named `usize` found for type `proc_macro::Literal` in the current scope\r\n   --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:313:27\r\n    |\r\n313 |               Literal::_new(proc_macro::Literal::$kind(n))\r\n    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`\r\n...\r\n334 | /     suffixed_numbers! {\r\n335 | |         u8_suffixed => u8,\r\n336 | |         u16_suffixed => u16,\r\n337 | |         u32_suffixed => u32,\r\n...   |\r\n347 | |         f64_suffixed => f64,\r\n348 | |     }\r\n    | |_____- in this macro invocation\r\n\r\nerror[E0599]: no function or associated item named `i8` found for type `proc_macro::Literal` in the current scope\r\n   --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:313:27\r\n    |\r\n313 |               Literal::_new(proc_macro::Literal::$kind(n))\r\n    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`\r\n...\r\n334 | /     suffixed_numbers! {\r\n335 | |         u8_suffixed => u8,\r\n336 | |         u16_suffixed => u16,\r\n337 | |         u32_suffixed => u32,\r\n...   |\r\n347 | |         f64_suffixed => f64,\r\n348 | |     }\r\n    | |_____- in this macro invocation\r\n\r\nerror[E0599]: no function or associated item named `i16` found for type `proc_macro::Literal` in the current scope\r\n   --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:313:27\r\n    |\r\n313 |               Literal::_new(proc_macro::Literal::$kind(n))\r\n    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`\r\n...\r\n334 | /     suffixed_numbers! {\r\n335 | |         u8_suffixed => u8,\r\n336 | |         u16_suffixed => u16,\r\n337 | |         u32_suffixed => u32,\r\n...   |\r\n347 | |         f64_suffixed => f64,\r\n348 | |     }\r\n    | |_____- in this macro invocation\r\n\r\nerror[E0599]: no function or associated item named `i32` found for type `proc_macro::Literal` in the current scope\r\n   --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:313:27\r\n    |\r\n313 |               Literal::_new(proc_macro::Literal::$kind(n))\r\n    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`\r\n...\r\n334 | /     suffixed_numbers! {\r\n335 | |         u8_suffixed => u8,\r\n336 | |         u16_suffixed => u16,\r\n337 | |         u32_suffixed => u32,\r\n...   |\r\n347 | |         f64_suffixed => f64,\r\n348 | |     }\r\n    | |_____- in this macro invocation\r\n\r\nerror[E0599]: no function or associated item named `i64` found for type `proc_macro::Literal` in the current scope\r\n   --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:313:27\r\n    |\r\n313 |               Literal::_new(proc_macro::Literal::$kind(n))\r\n    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`\r\n...\r\n334 | /     suffixed_numbers! {\r\n335 | |         u8_suffixed => u8,\r\n336 | |         u16_suffixed => u16,\r\n337 | |         u32_suffixed => u32,\r\n...   |\r\n347 | |         f64_suffixed => f64,\r\n348 | |     }\r\n    | |_____- in this macro invocation\r\n\r\nerror[E0599]: no function or associated item named `isize` found for type `proc_macro::Literal` in the current scope\r\n   --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:313:27\r\n    |\r\n313 |               Literal::_new(proc_macro::Literal::$kind(n))\r\n    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`\r\n...\r\n334 | /     suffixed_numbers! {\r\n335 | |         u8_suffixed => u8,\r\n336 | |         u16_suffixed => u16,\r\n337 | |         u32_suffixed => u32,\r\n...   |\r\n347 | |         f64_suffixed => f64,\r\n348 | |     }\r\n    | |_____- in this macro invocation\r\n\r\nerror[E0599]: no function or associated item named `f32` found for type `proc_macro::Literal` in the current scope\r\n   --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:313:27\r\n    |\r\n313 |               Literal::_new(proc_macro::Literal::$kind(n))\r\n    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`\r\n...\r\n334 | /     suffixed_numbers! {\r\n335 | |         u8_suffixed => u8,\r\n336 | |         u16_suffixed => u16,\r\n337 | |         u32_suffixed => u32,\r\n...   |\r\n347 | |         f64_suffixed => f64,\r\n348 | |     }\r\n    | |_____- in this macro invocation\r\n\r\nerror[E0599]: no function or associated item named `f64` found for type `proc_macro::Literal` in the current scope\r\n   --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:313:27\r\n    |\r\n313 |               Literal::_new(proc_macro::Literal::$kind(n))\r\n    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`\r\n...\r\n334 | /     suffixed_numbers! {\r\n335 | |         u8_suffixed => u8,\r\n336 | |         u16_suffixed => u16,\r\n337 | |         u32_suffixed => u32,\r\n...   |\r\n347 | |         f64_suffixed => f64,\r\n348 | |     }\r\n    | |_____- in this macro invocation\r\n\r\nerror[E0599]: no function or associated item named `integer` found for type `proc_macro::Literal` in the current scope\r\n   --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:321:27\r\n    |\r\n321 |               Literal::_new(proc_macro::Literal::integer(n as i128))\r\n    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`\r\n...\r\n350 | /     unsuffixed_integers! {\r\n351 | |         u8_unsuffixed => u8,\r\n352 | |         u16_unsuffixed => u16,\r\n353 | |         u32_unsuffixed => u32,\r\n...   |\r\n360 | |         isize_unsuffixed => isize,\r\n361 | |     }\r\n    | |_____- in this macro invocation\r\n\r\nerror[E0599]: no function or associated item named `float` found for type `proc_macro::Literal` in the current scope\r\n   --> /Users/mroberts/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.3/src/unstable.rs:368:23\r\n    |\r\n368 |         Literal::_new(proc_macro::Literal::float(f))\r\n    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`\r\n\r\nerror: aborting due to 29 previous errors\r\n\r\nSome errors occurred: E0277, E0369, E0412, E0433, E0574, E0599.\r\nFor more information about an error, try `rustc --explain E0277`.\r\nerror: Could not compile `proc-macro2`.\r\n\r\nTo learn more, run the command again with --verbose.\r\n```"},"comment":{"url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/comments/379120500","html_url":"https://github.com/rustwasm/wasm-bindgen/issues/105#issuecomment-379120500","issue_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/105","id":379120500,"user":{"login":"markandrus","id":359154,"avatar_url":"https://avatars3.githubusercontent.com/u/359154?v=4","gravatar_id":"","url":"https://api.github.com/users/markandrus","html_url":"https://github.com/markandrus","followers_url":"https://api.github.com/users/markandrus/followers","following_url":"https://api.github.com/users/markandrus/following{/other_user}","gists_url":"https://api.github.com/users/markandrus/gists{/gist_id}","starred_url":"https://api.github.com/users/markandrus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markandrus/subscriptions","organizations_url":"https://api.github.com/users/markandrus/orgs","repos_url":"https://api.github.com/users/markandrus/repos","events_url":"https://api.github.com/users/markandrus/events{/privacy}","received_events_url":"https://api.github.com/users/markandrus/received_events","type":"User","site_admin":false},"created_at":"2018-04-06T01:08:57Z","updated_at":"2018-04-06T01:08:57Z","author_association":"NONE","body":"It works! :-)"}}
{"actor":{"display_login":"markandrus"}}