summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/crate-version-escape.rs
blob: 8413709f15e909af3052fc62aec17d6e9b616e82 (plain)
1
2
3
4
5
// compile-flags: --crate-version=<script>alert("hi")</script> -Z unstable-options

#![crate_name = "foo"]

// @has 'foo/index.html' '//li[@class="version"]' 'Version <script>alert("hi")</script>'