Created
March 5, 2013 22:09
-
-
Save ben0x539/5094786 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct S<'self> { | |
v: &int | |
} | |
fn f<'lt>(_s: &S<'lt>) {} | |
fn main() { | |
f(& S { v: &42 }); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rustc bar.rs | |
Global is external, but doesn't have external or dllimport or weak linkage! | |
void ({}*, { i64, %tydesc*, i8*, i8*, i8 } addrspace(1)*, %"~struct S[#0]"*)* @_ZN1f17_12d56ae62635eef43_00E | |
invalid linkage type for function declaration | |
void ({}*, { i64, %tydesc*, i8*, i8*, i8 } addrspace(1)*, %"~struct S[#0]"*)* @_ZN1f17_12d56ae62635eef43_00E | |
Broken module found, compilation aborted! | |
Stack dump: | |
0. Running pass 'Function Pass Manager' on module 'bar.rc'. | |
Aborted |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment