graydon/rust — Issue #1028: Failure parsing malformed crate directive
Author: brson
Created: 2011-10-12 04:23:40+00:00
State: open
Labels: bug, front, unassigned

```
#[link(name = "ncurses",
vers = "0.1",
uuid = "2aae3bac-71d4-4cbf-9bc8-58951857c28a",
url = "http://www.leptoquark.net/~elly/rust/")];

#[comment = "Rust ncurses bindings"];
#[license = "BSD"];

mod ncurses = x;
```

```
rt: 253a:main:main: upcall fail 'explicit failure', /home/rustbuild/src/rustbot/workspace-snap-stage3-x86_64-unknown-linux-gnu/src/src/comp/syntax/parse/parser.rs:2468
```

x is expected to be a string.