You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
amitava:l2 amitava$ uname -a
Darwin amitava.local 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64
amitava:l2 amitava$ rustc --version
rustc 0.4 (c3f9b72 2012-09-30 21:35:32 -0700)
host: x86_64-apple-darwin
This error is generated only with the rustc -g option.
source code
// struct-test.rsuse io::println;fnmain(){// define structstructBomb{timer:uint,// destructor
drop {foriter::repeat(self.timer){println("bam");}}}// use Bomblet x = 10;match x {10 => {let b = Bomb{timer:10};println(fmt!("%?", b));}
_ => {println("not 10")}}}
my environment
amitava:l2 amitava$ uname -a Darwin amitava.local 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64 amitava:l2 amitava$ rustc --version rustc 0.4 (c3f9b72 2012-09-30 21:35:32 -0700) host: x86_64-apple-darwin
This error is generated only with the rustc -g option.
source code
compile with -g option (error)
compile without -g option (no error)
amitava:l2 amitava$ rustc struct-test.rs warning: no debug symbols in executable (-arch x86_64) amitava:l2 amitava$ ./struct-test { timer: 10 } bam bam bam bam bam bam bam bam bam bam
The text was updated successfully, but these errors were encountered: