       "nofile:2: you must require Kernel.ErrorsTest.UnproperMacro before invoking " <>
       "the macro Kernel.ErrorsTest.UnproperMacro.unproper/1 "
       '''
-      defmodule ErrorsTest do
+      defmodule Kernel.ErrorsTest.UnrequiredMacro do
         Kernel.ErrorsTest.UnproperMacro.unproper([])
       end
       '''

      "nofile:6: call to local macro &&/2 conflicts with imported Kernel.&&/2, " <>
      "please rename the local macro or remove the conflicting import",
      '''
      defmodule ErrorsTest do
        def hello, do: 1 || 2
        defmacro _ || _, do: :ok


    assert_compile_fail CompileError,
      "nofile:3: def hello/3 defaults conflicts with def hello/2",
      ~C'''
      defmodule Kernel.ErrorsTest.DifferentDefsWithDefaults1 do
        def hello(a, b \\ nil), do: a + b
        def hello(a, b \\ nil, c \\ nil), do: a + b + c
      end
