Skip to content

Instantly share code, notes, and snippets.

@ben0x539
Created March 5, 2013 22:09
Show Gist options
  • Save ben0x539/5094786 to your computer and use it in GitHub Desktop.
Save ben0x539/5094786 to your computer and use it in GitHub Desktop.
struct S<'self> {
v: &int
}
fn f<'lt>(_s: &S<'lt>) {}
fn main() {
f(& S { v: &42 });
}
$ 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