Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d3bbfb4

Browse files
author
Alexander Light
committedDec 1, 2014
added negative test for macro expansion in attributes
1 parent 5c20a15 commit d3bbfb4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
 
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
#[doc = $not_there] //~ error: unexpected token: `$`
12+
fn main() { }
13+

5 commit comments

Comments
 (5)

bors commented on Dec 2, 2014

@bors
Collaborator

saw approval from sfackler
at scialex@d3bbfb4

bors commented on Dec 2, 2014

@bors
Collaborator

merging scialex/rust/doc-attr-macros = d3bbfb4 into auto

bors commented on Dec 2, 2014

@bors
Collaborator

scialex/rust/doc-attr-macros = d3bbfb4 merged ok, testing candidate = 8dbe632

bors commented on Dec 2, 2014

@bors
Collaborator

fast-forwarding master to auto = 8dbe632

Please sign in to comment.