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

#![crate_name = "foo"]

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