mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
22 lines
638 B
Rust
22 lines
638 B
Rust
#![feature(sanitize)]
|
|
|
|
#[sanitize(brontosaurus = "off")] //~ ERROR malformed `sanitize` attribute input
|
|
fn main() {}
|
|
|
|
#[sanitize(address = "off")] //~ ERROR multiple `sanitize` attributes
|
|
#[sanitize(address = "off")]
|
|
fn multiple_consistent() {}
|
|
|
|
#[sanitize(address = "on")] //~ ERROR multiple `sanitize` attributes
|
|
#[sanitize(address = "off")]
|
|
fn multiple_inconsistent() {}
|
|
|
|
#[sanitize(address = "bogus")] //~ ERROR malformed `sanitize` attribute input
|
|
fn wrong_value() {}
|
|
|
|
#[sanitize = "off"] //~ ERROR malformed `sanitize` attribute input
|
|
fn name_value() {}
|
|
|
|
#[sanitize] //~ ERROR malformed `sanitize` attribute input
|
|
fn just_word() {}
|