Skip to content

Instantly share code, notes, and snippets.

@brson
Created December 11, 2012 01:10
Show Gist options
  • Save brson/4254886 to your computer and use it in GitHub Desktop.
Save brson/4254886 to your computer and use it in GitHub Desktop.
<core-macros>:17:32: 17:39 error: mismatched types: expected `~str` but found `&static/str` (str storage differs: expected ~ but found &static)
<core-macros>:17 let _: &~str = &($msg);
^~~~~~~
<core-macros>:13:4: 1:0 note: in expansion of die!
/home/brian/dev/rust/src/test/compile-fail/die-not-unique.rs:2:4: 2:17 note: expansion site
/home/brian/dev/rust/src/test/compile-fail/die-not-unique.rs:2:9: 2:15 error: mismatched types: expected `~str` but found `&static/str` (str storage differs: expected ~ but found &static)
/home/brian/dev/rust/src/test/compile-fail/die-not-unique.rs:2 die!("test"); //~ ERROR what
^~~~~~
<core-macros>:13:4: 1:0 note: in expansion of die!
/home/brian/dev/rust/src/test/compile-fail/die-not-unique.rs:2:4: 2:17 note: expansion site
<core-macros>:17:32: 17:39 error: mismatched types: expected `~str` but found `&static/str` (str storage differs: expected ~ but found &static)
<core-macros>:17 let _: &~str = &($msg);
^~~~~~~
<core-macros>:13:4: 1:0 note: in expansion of die!
/home/brian/dev/rust/src/test/compile-fail/die-not-unique.rs:2:4: 2:17 note: expansion site
<core-macros>:17:31: 17:39 error: mismatched types: expected `&~str` but found `&&static/str` (str storage differs: expected ~ but found &static)
<core-macros>:17 let _: &~str = &($msg);
^~~~~~~~
<core-macros>:13:4: 1:0 note: in expansion of die!
/home/brian/dev/rust/src/test/compile-fail/die-not-unique.rs:2:4: 2:17 note: expansion site
<core-macros>:17:23: 17:28 error: Unconstrained region variable #0
<core-macros>:17 let _: &~str = &($msg);
^~~~~
<core-macros>:13:4: 1:0 note: in expansion of die!
/home/brian/dev/rust/src/test/compile-fail/die-not-unique.rs:2:4: 2:17 note: expansion site
error: aborting due to 5 previous errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment