Skip to content

Commit

Permalink
#10356: Warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tamird committed Apr 29, 2015
1 parent 54de911 commit c6364ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/auxiliary/linkage-visibility.rs
Expand Up @@ -10,6 +10,10 @@

#![feature(std_misc)]

// We're testing linkage visibility; the compiler warns us, but we want to
// do the runtime check that these functions aren't exported.
#![allow(private_no_mangle_fns)]

use std::dynamic_lib::DynamicLibrary;

#[no_mangle]
Expand All @@ -25,6 +29,7 @@ pub fn foo2<T>() {
#[no_mangle]
fn bar() { }

#[allow(dead_code)]
#[no_mangle]
fn baz() { }

Expand Down

0 comments on commit c6364ab

Please sign in to comment.